mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Use fixed max value for opened preview menu timeout
This commit is contained in:
@@ -452,11 +452,6 @@
|
||||
<summary>Icon enter display time</summary>
|
||||
<description>Amount of time after entering icon to wait before displaying window preview if icon is not clicked or mouse has not left.</description>
|
||||
</key>
|
||||
<key type="i" name="move-window-previews-timeout">
|
||||
<default>100</default>
|
||||
<summary>Icon enter move time</summary>
|
||||
<description>Amount of time after entering icon to wait before moving window preview if icon is not clicked or mouse has not left.</description>
|
||||
</key>
|
||||
<key type="b" name="peek-mode">
|
||||
<default>true</default>
|
||||
<summary>Enable peek mode</summary>
|
||||
|
||||
@@ -170,12 +170,14 @@ var PreviewMenu = Utils.defineClass({
|
||||
},
|
||||
|
||||
requestOpen: function(appIcon) {
|
||||
let timeout = Me.settings.get_int('show-window-previews-timeout');
|
||||
|
||||
if (this.opened) {
|
||||
timeout = Math.min(100, timeout);
|
||||
}
|
||||
|
||||
this._endOpenCloseTimeouts();
|
||||
this._timeoutsHandler.add([
|
||||
T1,
|
||||
Me.settings.get_int((this.opened ? 'move' : 'show') + '-window-previews-timeout'),
|
||||
() => this.open(appIcon)
|
||||
]);
|
||||
this._timeoutsHandler.add([T1, timeout, () => this.open(appIcon)]);
|
||||
},
|
||||
|
||||
requestClose: function() {
|
||||
|
||||
Reference in New Issue
Block a user