Renamed toggle-visibility method name

This commit is contained in:
Erik Reider 2021-08-01 17:55:28 +02:00
parent d82cf15d02
commit eca6bade15
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ interface CcDaemon : GLib.Object {
public abstract bool get_dnd () throws DBusError, IOError;
public abstract void toggle () throws DBusError, IOError;
public abstract void toggle_visibility () throws DBusError, IOError;
public abstract bool toggle_dnd () throws DBusError, IOError;
@ -51,7 +51,7 @@ public int command_line (string[] args) {
break;
case "--toggle-panel":
case "-t":
cc_daemon.toggle ();
cc_daemon.toggle_visibility ();
break;
case "--toggle-dnd":
case "-d":

View File

@ -31,7 +31,7 @@ namespace SwayNotificatonCenter {
return cc.notification_count ();
}
public void toggle () throws DBusError, IOError {
public void toggle_visibility () throws DBusError, IOError {
if (cc.toggle_visibility ()) {
dbusInit.notiDaemon.set_noti_window_visibility (false);
}