From 6062164652eb36d802f90c2fc855f420c7d74164 Mon Sep 17 00:00:00 2001 From: Jas Singh Date: Sun, 14 Jul 2024 02:07:37 -0700 Subject: [PATCH] Increase hyprpicker timeout --- modules/menus/dashboard/shortcuts/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/menus/dashboard/shortcuts/index.js b/modules/menus/dashboard/shortcuts/index.js index df0dd8a..5f328c4 100644 --- a/modules/menus/dashboard/shortcuts/index.js +++ b/modules/menus/dashboard/shortcuts/index.js @@ -13,7 +13,7 @@ const Shortcuts = () => { }, ], }); - const handleClick = (action, resolver) => { + const handleClick = (action, resolver, tOut = 250) => { App.closeWindow("dashboardmenu"); setTimeout(() => { @@ -26,7 +26,7 @@ const Shortcuts = () => { return res; }) .catch((err) => err); - }, 250); + }, tOut); }; const recordingDropdown = Widget.Menu({ @@ -141,7 +141,7 @@ const Shortcuts = () => { Widget.Button({ tooltip_text: "Color Picker", class_name: "dashboard-button colorpicker top-button", - on_primary_click: () => handleClick("hyprpicker -a"), + on_primary_click: () => handleClick("hyprpicker -a", {}, 500), child: Widget.Label({ class_name: "button-label", label: "",