From 54e6b8429aa9bfe892b084304b89f6aa7a385635 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Tue, 20 Feb 2024 12:14:29 +0100 Subject: [PATCH] Fix set translation --- lirve.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lirve.el b/lirve.el index c036a72..3cc29b6 100644 --- a/lirve.el +++ b/lirve.el @@ -30,7 +30,7 @@ (defvar lirve--verb-to-learn-simple-past nil) (defvar lirve--verb-to-learn-past-participle nil) (defvar lirve--translation "") -(defvar lirve--set-translation) ;; Set the translation language +(defvar lirve--set-translation nil) ;; Set the translation language (defvar lirve--emoji-valid "✅") (defvar lirve--emoji-error "👎") (defvar lirve--widget-title nil) @@ -187,7 +187,7 @@ Argument INFINITIVE verb to remove." (defun lirve--show-translation () "Show translation if `lirve--show-translation' is t." - (when (not (null lirve--translation)) + (when lirve--set-translation (widget-value-set lirve--widget-item-verb (concat (lirve--format-value-infinitive) " 🇪🇸 " lirve--translation)))) (defun lirve--toggle-layout-finish ()