Commit e7556a0d authored by Erik Reider's avatar Erik Reider

Fixed default action being null

parent ce876e86
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment