mirror of
https://github.com/anufrievroman/waypaper.git
synced 2024-11-22 07:22:19 +03:00
feat: add condition to monitor display option
This commit is contained in:
parent
de674d772e
commit
accd312f37
@ -237,10 +237,12 @@ class App(Gtk.Window):
|
||||
|
||||
|
||||
def monitor_option_display(self) -> None:
|
||||
"""Display monitor option if backend is swww or hyprpaper (with swww installed)"""
|
||||
"""Display monitor option if backend is not feh or wallutils"""
|
||||
self.options_box.remove(self.monitor_option_combo)
|
||||
# Check available monitors:
|
||||
monitor_names = ["All"]
|
||||
if self.cf.backend in ["feh", "wallutils", "none"]:
|
||||
return
|
||||
monitor_names.extend(get_monitor_names())
|
||||
|
||||
# Create a monitor option dropdown menu:
|
||||
|
Loading…
Reference in New Issue
Block a user