diff --git a/Settings.ui b/Settings.ui
index 1ae4412..033636e 100644
--- a/Settings.ui
+++ b/Settings.ui
@@ -5428,7 +5428,7 @@
- Launch new instance
- Cycle through windows
- Cycle windows + minimize
- - Do nothing + minimize
+ - Toggle + Show preview
diff --git a/appIcons.js b/appIcons.js
index bf8390f..1a87026 100644
--- a/appIcons.js
+++ b/appIcons.js
@@ -752,13 +752,12 @@ var taskbarAppIcon = new Lang.Class({
}
let appCount = this.getAppIconInterestingWindows().length;
- if (this.windowPreview && (!(buttonAction == "NOTHING-MIN") || (appCount <= 1)))
+ if (this.windowPreview && (!(buttonAction == "TOOGLE-SHOWPREVIEW") || (appCount <= 1)))
this.windowPreview.requestCloseMenu();
// We check if the app is running, and that the # of windows is > 0 in
// case we use workspace isolation,
- let appIsRunning = this.app.state == Shell.AppState.RUNNING
- && this.getAppIconInterestingWindows().length > 0
+ let appIsRunning = this.app.state == Shell.AppState.RUNNING && appCount > 0
// We customize the action only when the application is already running
if (appIsRunning && !this.isLauncher) {
@@ -840,7 +839,7 @@ var taskbarAppIcon = new Lang.Class({
else
this.app.activate();
break;
- case "NOTHING-MIN":
+ case "TOOGLE-SHOWPREVIEW":
if (appCount == 1) {
if (!Main.overview._shown) {
if (this.app == focusedApp)
diff --git a/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml b/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml
index 1aa8bf4..b48f82b 100644
--- a/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml
+++ b/schemas/org.gnome.shell.extensions.dash-to-panel.gschema.xml
@@ -16,7 +16,7 @@
-
+