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}.`);
|
debug.message(manual ? `Time manually set to ${time}.` : `Time changed to ${time}.`);
|
||||||
|
|
||||||
const isMonitorFullscreen = layoutManager.monitors.some(monitor => monitor.inFullscreen);
|
const isMonitorFullscreen = layoutManager.monitors.some(monitor => monitor.inFullscreen);
|
||||||
if (this.#settings.get_boolean('fullscreen-transition') || !isMonitorFullscreen)
|
if (this.#settings.get_boolean('fullscreen-transition') || !isMonitorFullscreen) {
|
||||||
layoutManager.screenTransition.run();
|
try {
|
||||||
|
layoutManager.screenTransition.run();
|
||||||
|
} catch {}
|
||||||
|
}
|
||||||
|
|
||||||
this.notify('time');
|
this.notify('time');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user