mirror of
https://github.com/morgan9e/dash-to-panel
synced 2026-04-14 00:04:17 +09:00
Remove unnecessary call to _checkHotkeyPrefix.
This avoids writing settings on every boot (or disable/enable hotkey sequence).
This commit is contained in:
committed by
Jason DeRose
parent
aabaed7324
commit
c7bbe9bc61
@@ -186,7 +186,7 @@ const dtpOverview = new Lang.Class({
|
||||
|
||||
_checkHotkeyPrefix: function() {
|
||||
this._dtpSettings.delay();
|
||||
|
||||
|
||||
let hotkeyPrefix = this._dtpSettings.get_string('hotkey-prefix-text');
|
||||
if (hotkeyPrefix == 'Super')
|
||||
hotkeyPrefix = '<Super>';
|
||||
@@ -240,8 +240,6 @@ const dtpOverview = new Lang.Class({
|
||||
if (this._hotKeysEnabled)
|
||||
return;
|
||||
|
||||
this._checkHotkeyPrefix();
|
||||
|
||||
// Setup keyboard bindings for taskbar elements
|
||||
let keys = ['app-hotkey-', 'app-shift-hotkey-', 'app-ctrl-hotkey-', // Regular numbers
|
||||
'app-hotkey-kp-', 'app-shift-hotkey-kp-', 'app-ctrl-hotkey-kp-']; // Key-pad numbers
|
||||
|
||||
Reference in New Issue
Block a user