mirror of
https://github.com/ErikReider/SwayNotificationCenter.git
synced 2024-09-11 15:56:04 +03:00
Allow empty name for actions (#272)
This commit is contained in:
parent
4153db39d4
commit
d46833bbd7
@ -241,15 +241,16 @@ namespace SwayNotificationCenter {
|
||||
var action = new Action ();
|
||||
action.identifier = actions[i];
|
||||
action.name = actions[i + 1];
|
||||
if (action.name != null && action.identifier != null
|
||||
&& action.name != "" && action.identifier != "") {
|
||||
|
||||
if (action.name != null && action.identifier != null) {
|
||||
string id = action.identifier.down ();
|
||||
switch (id) {
|
||||
case "default":
|
||||
default_action = action;
|
||||
break;
|
||||
case "inline-reply":
|
||||
if (action.name == "") {
|
||||
action.name = "Reply";
|
||||
}
|
||||
inline_reply = action;
|
||||
break;
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user