mirror of
https://github.com/ErikReider/SwayNotificationCenter.git
synced 2024-10-05 21:08:40 +03:00
Renamed toggle-visibility method name
This commit is contained in:
parent
d82cf15d02
commit
eca6bade15
@ -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":
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user