mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Don't try to reveal panel with a shortcut timeout of 0
This commit is contained in:
@@ -879,8 +879,7 @@
|
||||
</key>
|
||||
<key type="i" name="shortcut-timeout">
|
||||
<default>2000</default>
|
||||
<summary>Timeout to hide the dock, in seconds</summary>
|
||||
<description>Sets the time duration before the dock is hidden again.</description>
|
||||
<summary>Timeout to hide the panel after showing the overlay using the shortcut, in seconds</summary>
|
||||
</key>
|
||||
<key type="i" name="overlay-timeout">
|
||||
<default>750</default>
|
||||
|
||||
@@ -468,20 +468,18 @@ export const Overview = class {
|
||||
|
||||
// Restart the counting if the shortcut is pressed again
|
||||
let hotkey_option = SETTINGS.get_string('hotkeys-overlay-combo')
|
||||
let temporarily = hotkey_option === 'TEMPORARILY'
|
||||
let timeout = SETTINGS.get_int(
|
||||
overlayFromShortcut ? 'shortcut-timeout' : 'overlay-timeout',
|
||||
)
|
||||
|
||||
if (hotkey_option === 'NEVER') return
|
||||
if (hotkey_option === 'NEVER' || (!timeout && temporarily)) return
|
||||
|
||||
if (hotkey_option === 'TEMPORARILY' || overlayFromShortcut)
|
||||
if (temporarily || overlayFromShortcut)
|
||||
this._toggleHotkeysNumberOverlay(true)
|
||||
|
||||
this._panel.intellihide.revealAndHold(Intellihide.Hold.TEMPORARY)
|
||||
|
||||
let timeout = SETTINGS.get_int('overlay-timeout')
|
||||
|
||||
if (overlayFromShortcut) {
|
||||
timeout = SETTINGS.get_int('shortcut-timeout')
|
||||
}
|
||||
|
||||
// Hide the overlay/dock after the timeout
|
||||
this._timeoutsHandler.add([
|
||||
T2,
|
||||
|
||||
Reference in New Issue
Block a user