refactor(ags): prioritise getters when using astal libs

This commit is contained in:
matt1432 2024-12-29 17:22:55 -05:00
parent 10b70583e0
commit 179e402504
30 changed files with 176 additions and 164 deletions
modules/ags/config/widgets/greeter

View file

@ -64,7 +64,7 @@ export default (hyprpaper: InstanceType<typeof Process>) => {
onActivate={(self) => {
AstalGreet.login(
dropdown.get_active_text() ?? '',
self.text || '',
self.get_text() || '',
'Hyprland',
(_, res) => {
try {
@ -77,7 +77,7 @@ export default (hyprpaper: InstanceType<typeof Process>) => {
}, 500);
}
catch (error) {
response.label = JSON.stringify(error);
response.set_label(JSON.stringify(error));
}
},
);
@ -94,7 +94,7 @@ export default (hyprpaper: InstanceType<typeof Process>) => {
setup={(self) => {
centerCursor();
setTimeout(() => {
self.visible = true;
self.set_visible(true);
password.grab_focus();
}, 1000);
}}