Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
anufrievroman committed Aug 12, 2023
1 parent f1bfc14 commit 0916789
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions waypaper/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 0916789

Please sign in to comment.