Fixed default action being null
This commit is contained in:
@@ -292,8 +292,10 @@ namespace SwayNotificationCenter {
|
|||||||
action_clicked (param.actions.index (index));
|
action_clicked (param.actions.index (index));
|
||||||
}
|
}
|
||||||
|
|
||||||
private void action_clicked (Action action, bool is_default = false) {
|
private void action_clicked (Action ? action, bool is_default = false) {
|
||||||
if (action.identifier != null && action.identifier != "") {
|
if (action != null
|
||||||
|
&& action.identifier != null
|
||||||
|
&& action.identifier != "") {
|
||||||
noti_daemon.ActionInvoked (param.applied_id, action.identifier);
|
noti_daemon.ActionInvoked (param.applied_id, action.identifier);
|
||||||
if (ConfigModel.instance.hide_on_action) {
|
if (ConfigModel.instance.hide_on_action) {
|
||||||
try {
|
try {
|
||||||
|
Reference in New Issue
Block a user