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
-
+
+ 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 () {