Timer: Ignore transition errors
This commit is contained in:
@@ -116,8 +116,11 @@ export class Timer extends GObject.Object {
|
||||
debug.message(manual ? `Time manually set to ${time}.` : `Time changed to ${time}.`);
|
||||
|
||||
const isMonitorFullscreen = layoutManager.monitors.some(monitor => monitor.inFullscreen);
|
||||
if (this.#settings.get_boolean('fullscreen-transition') || !isMonitorFullscreen)
|
||||
layoutManager.screenTransition.run();
|
||||
if (this.#settings.get_boolean('fullscreen-transition') || !isMonitorFullscreen) {
|
||||
try {
|
||||
layoutManager.screenTransition.run();
|
||||
} catch {}
|
||||
}
|
||||
|
||||
this.notify('time');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user