[chirp_devel] [PATCH] Fix Hide Unused Fields toggle when no Radio is open. #667
# HG changeset patch # User Tom Hayward tom@tomh.us # Date 1362505787 28800 # Node ID 443ea98c0840de12f8ee149ccd8eecc78bb69a51 # Parent a26a5eda776e637f72693c7206cbd2cecb15c590 Fix Hide Unused Fields toggle when no Radio is open. #667
diff -r a26a5eda776e -r 443ea98c0840 chirpui/mainapp.py --- a/chirpui/mainapp.py Sun Mar 03 14:13:20 2013 -0800 +++ b/chirpui/mainapp.py Tue Mar 05 09:49:47 2013 -0800 @@ -1211,7 +1211,11 @@
def do_hide_unused(self, action): eset = self.get_current_editorset() - eset.editors["memedit"].set_hide_unused(action.get_active()) + if eset is None: + conf = config.get("memedit") + conf.set_bool("hide_unused", action.get_active()) + else: + eset.editors["memedit"].set_hide_unused(action.get_active())
def do_clearq(self): eset = self.get_current_editorset()
participants (1)
-
Tom Hayward