Update snapshot functionality and add notification for it.
This commit is contained in:
@@ -157,8 +157,12 @@ const Shortcuts = () => {
|
||||
children: [
|
||||
Widget.Button({
|
||||
class_name: "dashboard-button snapshot top-button",
|
||||
on_primary_click: () =>
|
||||
handleClick("grimblast --notify copysave area"),
|
||||
on_primary_click: () => {
|
||||
App.closeWindow("dashboardmenu");
|
||||
return Utils.execAsync(
|
||||
`${App.configDir}/services/snapshot.sh`,
|
||||
).catch((err) => console.error(err));
|
||||
},
|
||||
child: Widget.Label({
|
||||
class_name: "button-label",
|
||||
label: "",
|
||||
|
||||
@@ -140,6 +140,9 @@ export default () => {
|
||||
class_name:
|
||||
"notification-action-buttons-label menu",
|
||||
hexpand: true,
|
||||
max_width_chars: 15,
|
||||
truncate: "end",
|
||||
wrap: true,
|
||||
label: action.label,
|
||||
}),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user