diff --git a/randomwallpaper@iflow.space/prefs.js b/randomwallpaper@iflow.space/prefs.js index 9aa1ad6..7a924bf 100644 --- a/randomwallpaper@iflow.space/prefs.js +++ b/randomwallpaper@iflow.space/prefs.js @@ -134,6 +134,10 @@ const RandomWallpaperSettings = new Lang.Class({ this._builder.get_object('change-lock-screen'), 'active', Gio.SettingsBindFlags.DEFAULT); + this._settings.bind('disable-hover-preview', + this._builder.get_object('disable-hover-preview'), + 'active', + Gio.SettingsBindFlags.DEFAULT); }, _toggleAfSliders: function () { diff --git a/randomwallpaper@iflow.space/schemas/gschemas.compiled b/randomwallpaper@iflow.space/schemas/gschemas.compiled index 824348e..9fc7997 100644 Binary files a/randomwallpaper@iflow.space/schemas/gschemas.compiled and b/randomwallpaper@iflow.space/schemas/gschemas.compiled differ diff --git a/randomwallpaper@iflow.space/schemas/org.gnome.shell.extensions.space.iflow.randomwallpaper.gschema.xml b/randomwallpaper@iflow.space/schemas/org.gnome.shell.extensions.space.iflow.randomwallpaper.gschema.xml index 15d5ab6..d80a074 100644 --- a/randomwallpaper@iflow.space/schemas/org.gnome.shell.extensions.space.iflow.randomwallpaper.gschema.xml +++ b/randomwallpaper@iflow.space/schemas/org.gnome.shell.extensions.space.iflow.randomwallpaper.gschema.xml @@ -62,6 +62,12 @@ Weather the gnome lock screen should also be set to the new wallpaper. + + false + Disable hover preview + Disables the preview of the background while hovering the history list + + 1 10 - + + 400 600 True True - in - 300 - True - True - + True - False - none + True + in + True + True - + True - True + False + none True @@ -431,18 +431,135 @@ You have to specify an URL to a JSON response and a path to the target picture u 1 + + + True + False + 0 + in + + + True + False + 15 + 15 + 15 + 15 + + + True + False + 10 + 2 + + + True + False + True + True + + + True + False + start + Disable hover preview + + + 0 + 0 + + + + + True + False + True + Disable the desktop preview of the background while hovering the history items. Try enabeling if you encounter crashes or laggs of the gnome shell while using the extension. + True + True + 1 + 0 + + + + 0 + 1 + + + + + 0 + 0 + + + + + True + False + vertical + + + True + True + end + start + + + False + True + 0 + + + + + 1 + 0 + + + + + + + + + + + + False + True + 2 + + - - - True - False - General - - - False - - + + + + + + + True + False + General + + + False + + + + + True + True + in + True + True + + + True + False + none True @@ -543,21 +660,37 @@ You have to specify an URL to a JSON response and a path to the target picture u - - 1 - - - - - True - False - History - - - 1 - False - + + + + + 1 + + + + + True + False + History + + + 1 + False + + + + + True + True + in + True + True + + + True + False + none True @@ -753,24 +886,24 @@ You have to specify an URL to a JSON response and a path to the target picture u - - 2 - - - - - True - False - Auto-Fetching - - - 2 - False - + + 2 + + + + + True + False + Auto-Fetching + + + 2 + False + diff --git a/randomwallpaper@iflow.space/wallpaperController.js b/randomwallpaper@iflow.space/wallpaperController.js index ebbf35c..bc5446a 100644 --- a/randomwallpaper@iflow.space/wallpaperController.js +++ b/randomwallpaper@iflow.space/wallpaperController.js @@ -245,7 +245,7 @@ let WallpaperController = new Lang.Class({ }); }, - _backgroundTimout: function (delay) { + _backgroundTimeout: function (delay) { if (this.timeout) { return; } @@ -265,15 +265,19 @@ let WallpaperController = new Lang.Class({ }, previewWallpaper: function (historyid, delay) { - this.previewId = historyid; - this._resetWallpaper = false; + if (!this._settings.get('disable-hover-preview', 'boolean')) { + this.previewId = historyid; + this._resetWallpaper = false; - this._backgroundTimout(delay); + this._backgroundTimeout(delay); + } }, resetWallpaper: function () { - this._resetWallpaper = true; - this._backgroundTimout(); + if (!this._settings.get('disable-hover-preview', 'boolean')) { + this._resetWallpaper = true; + this._backgroundTimeout(); + } }, getHistoryController: function () {