Fixed default action being null

This commit is contained in:
Erik Reider
2022-05-11 19:51:13 +02:00
parent ce876e8649
commit e7556a0da0

View File

@@ -292,8 +292,10 @@ namespace SwayNotificationCenter {
action_clicked (param.actions.index (index));
}
private void action_clicked (Action action, bool is_default = false) {
if (action.identifier != null && action.identifier != "") {
private void action_clicked (Action ? action, bool is_default = false) {
if (action != null
&& action.identifier != null
&& action.identifier != "") {
noti_daemon.ActionInvoked (param.applied_id, action.identifier);
if (ConfigModel.instance.hide_on_action) {
try {