diff --git a/randomwallpaper@iflow.space/prefs.js b/randomwallpaper@iflow.space/prefs.js index eb71770..e3b36d3 100644 --- a/randomwallpaper@iflow.space/prefs.js +++ b/randomwallpaper@iflow.space/prefs.js @@ -124,6 +124,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 b0ca0b1..a9c89ee 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 a1e53e8..1f33f2d 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 @@ -61,6 +61,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 + + - + @@ -45,23 +45,23 @@ 1 10 - + + 400 600 True True - in - 300 - True - True - + True - False - none + True + in + True + True - + True - True + False + none True @@ -314,18 +314,135 @@ 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 @@ -426,21 +543,37 @@ - - 1 - - - - - True - False - History - - - 1 - False - + + + + + 1 + + + + + True + False + History + + + 1 + False + + + + + True + True + in + True + True + + + True + False + none True @@ -636,24 +769,24 @@ - - 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 a453c4b..15b9289 100644 --- a/randomwallpaper@iflow.space/wallpaperController.js +++ b/randomwallpaper@iflow.space/wallpaperController.js @@ -241,7 +241,7 @@ let WallpaperController = new Lang.Class({ }); }, - _backgroundTimout: function (delay) { + _backgroundTimeout: function (delay) { if (this.timeout) { return; } @@ -261,15 +261,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 () {