Implemented screen recording functionality for record button in dashboard.
This commit is contained in:
@@ -57,7 +57,13 @@ export default () => {
|
||||
hexpand: true,
|
||||
class_name: "notification-action-buttons",
|
||||
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",
|
||||
|
||||
Reference in New Issue
Block a user