[alacarte/wip/muktupavels/issue-10: 2/2] ItemEditor: resync cmd line validity on focus gained




commit 73bb806dac8dd81cbd09035a5e16ff9621a281db
Author: Daniel Dakhno <dakhnod gmail com>
Date:   Fri Jan 28 21:13:43 2022 +0100

    ItemEditor: resync cmd line validity on focus gained
    
    https://gitlab.gnome.org/GNOME/alacarte/-/issues/10

 Alacarte/ItemEditor.py | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/Alacarte/ItemEditor.py b/Alacarte/ItemEditor.py
index 3591530..b7e42fd 100644
--- a/Alacarte/ItemEditor.py
+++ b/Alacarte/ItemEditor.py
@@ -200,6 +200,7 @@ class LauncherEditor(ItemEditor):
 
         self.builder.get_object('name-entry').connect('changed', self.resync_validity)
         self.builder.get_object('exec-entry').connect('changed', self.resync_validity)
+        self.dialog.connect('focus-in-event', self.resync_validity)
 
     def exec_line_is_valid(self, exec_text):
         try:


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]