From 09167893be8240c6f2b2b93a0e473cece430f97b Mon Sep 17 00:00:00 2001 From: Roman Date: Sat, 12 Aug 2023 12:56:58 +0900 Subject: [PATCH] Minor fix --- waypaper/app.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/waypaper/app.py b/waypaper/app.py index 9c5e357..4b04240 100644 --- a/waypaper/app.py +++ b/waypaper/app.py @@ -92,11 +92,11 @@ def __init__(self): # self.backend_option_combo.get_child().set_sensitive(list_item) # Set as active line the backend from config, if it is installed: - if self.missing_backends[BACKEND_OPTIONS.index(cf.backend)]: - active_num = 0 - else: + try: filtered_backends = [value for value, miss in zip(BACKEND_OPTIONS, self.missing_backends) if not miss] active_num = filtered_backends.index(cf.backend) + except: + active_num = 0 self.backend_option_combo.set_active(active_num) self.backend_option_combo.connect("changed", self.on_backend_option_changed)