summaryrefslogtreecommitdiff
path: root/chirpui/mainapp.py
diff options
context:
space:
mode:
Diffstat (limited to 'chirpui/mainapp.py')
-rw-r--r--chirpui/mainapp.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/chirpui/mainapp.py b/chirpui/mainapp.py
index 27c4b3c..e3b2eb1 100644
--- a/chirpui/mainapp.py
+++ b/chirpui/mainapp.py
@@ -1128,7 +1128,11 @@ If you think that it is valid, you can select a radio model below to force an op
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()