Fix directory navigation in dashboard.

This commit is contained in:
Jas Singh
2024-07-14 01:38:58 -07:00
parent ad7c813917
commit f6b53ba522
2 changed files with 12 additions and 12 deletions

View File

@@ -168,12 +168,8 @@ const Shortcuts = () => {
Widget.Button({
tooltip_text: "Screenshot",
class_name: "dashboard-button snapshot top-button",
on_primary_click: () => {
App.closeWindow("dashboardmenu");
return Utils.execAsync(
`${App.configDir}/services/snapshot.sh`,
).catch((err) => console.error(err));
},
on_primary_click: () =>
handleClick(`${App.configDir}/services/snapshot.sh`),
child: Widget.Label({
class_name: "button-label",
label: "󰄀",