highlight ident button on active auth session, disable on auth unsupported

This commit is contained in:
yggverse 2024-11-21 10:22:04 +02:00
parent 3064b530ea
commit 5d01786596
4 changed files with 32 additions and 9 deletions

View file

@ -30,4 +30,10 @@ impl Ident {
pub fn connect_activate(&self, callback: impl Fn() + 'static) {
self.gobject.connect_activate(move |_, _| callback());
}
// Getters
pub fn gobject(&self) -> &SimpleAction {
&self.gobject
}
}