randomWallpaper: don't exit or error when no monitors are available
Some checks are pending
git-mirror / gitlab-sync (push) Waiting to run
nix-build / default-build (push) Waiting to run
nix-build / fallarbor-build (push) Waiting to run
nix-build / lavaridge-build (push) Waiting to run
nix-build / mauville-build (push) Waiting to run
nix-build / petalburg-build (push) Waiting to run
nix-build / rustboro-build (push) Waiting to run
nix-check / fmt-check (push) Waiting to run
nix-check / eval-check (push) Waiting to run

This commit is contained in:
Aly Raffauf 2024-08-04 22:27:00 -04:00
parent 0d6d4ac109
commit 4c833eec04

View file

@ -27,7 +27,7 @@
if Dir.exist?(directory) if Dir.exist?(directory)
loop do loop do
active_monitors = get_outputs active_monitors = get_outputs
break if active_monitors.empty? next if active_monitors.empty?
added_monitors = active_monitors - known_monitors.keys added_monitors = active_monitors - known_monitors.keys
removed_monitors = known_monitors.keys - active_monitors removed_monitors = known_monitors.keys - active_monitors