ags: sync

This commit is contained in:
end-4
2024-02-01 14:31:18 +07:00
parent 081ffba5e7
commit 9caf902dce
3 changed files with 10 additions and 8 deletions
+6 -1
View File
@@ -119,7 +119,12 @@ const pinButton = Button({
child: MaterialIcon('push_pin', 'larger'),
tooltipText: 'Pin sidebar (Ctrl+P)',
onClicked: (self) => self.attribute.toggle(self),
setup: setupCursorHover,
setup: (self) => {
setupCursorHover(self);
self.hook(App, (self, currentName, visible) => {
if (currentName === 'sideleft' && visible) self.grab_focus();
})
},
})
export default () => Box({