Implemented screen recording functionality for record button in dashboard.

This commit is contained in:
Jas Singh
2024-07-08 02:54:38 -07:00
parent 251a4da2bc
commit 11986dd5a6
9 changed files with 108 additions and 74 deletions

View File

@@ -123,7 +123,13 @@ export default () => {
hexpand: true,
class_name: "notification-action-buttons menu",
on_primary_click: () => {
notif.invoke(action.id);
if (action.id.includes("scriptAction:-")) {
Utils.execAsync(
`${action.id.replace("scriptAction:-", "")}`,
).catch((err) => console.error(err));
} else {
notif.invoke(action.id);
}
},
child: Widget.Box({
hpack: "center",