Added "All" option to panel output selection #48

This commit is contained in:
piotr
2021-04-13 00:56:06 +02:00
parent beefe71656
commit 8e3f3e2cfe
2 changed files with 27 additions and 5 deletions

View File

@@ -21,7 +21,7 @@ config_dir = get_config_dir()
configs = {}
editor = None
selector_window = None
outputs = None
outputs = {}
SKELETON_PANEL: dict = {
"name": "",
@@ -538,7 +538,10 @@ class EditorWrapper(object):
self.cb_output = builder.get_object("output")
for key in outputs:
self.cb_output.append(key, key)
if self.panel["output"] and self.panel["output"] in outputs:
self.cb_output.append("All", "All")
if self.panel["output"] and (self.panel["output"] in outputs or self.panel["output"] == "All"):
self.cb_output.set_active_id(self.panel["output"])
screen_width, screen_height = None, None