Extension: Add setting to disable transition when an app is fullscreen
This commit is contained in:
@@ -16,6 +16,7 @@ export class SchedulePage extends Adw.PreferencesPage {
|
||||
'keyboard_shortcut_button',
|
||||
'schedule_sunrise_time_chooser',
|
||||
'schedule_sunset_time_chooser',
|
||||
'fullscreen_transition_switch',
|
||||
],
|
||||
}, this);
|
||||
}
|
||||
@@ -28,6 +29,8 @@ export class SchedulePage extends Adw.PreferencesPage {
|
||||
settings.bind('sunrise', this._schedule_sunrise_time_chooser, 'time', Gio.SettingsBindFlags.DEFAULT);
|
||||
settings.bind('sunset', this._schedule_sunset_time_chooser, 'time', Gio.SettingsBindFlags.DEFAULT);
|
||||
|
||||
settings.bind('fullscreen-transition', this._fullscreen_transition_switch, 'active', Gio.SettingsBindFlags.DEFAULT);
|
||||
|
||||
settings.connect('changed::nightthemeswitcher-ondemand-keybinding', () => {
|
||||
this._keyboard_shortcut_button.keybinding = settings.get_strv('nightthemeswitcher-ondemand-keybinding')[0];
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user