Skip to content

Commit

Permalink
chore(ui): comment out developer shortcut code
Browse files Browse the repository at this point in the history
  • Loading branch information
Serein207 committed Sep 30, 2024
1 parent b8872a9 commit 092e563
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions ui/views/overlay/login.slint
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,20 @@ export component LoginOverlay inherits Overlay {
// guest login disabled
// ViewManager.prior-view();
}
pointer-event(e) => {
// developer shortcut
if (e.modifiers.shift && e.modifiers.control && e.kind == PointerEventKind.up) {
if (e.button == PointerEventButton.left) {
debug("[Developer Shortcut] LoginOverlay: force close LoginView");
ViewManager.prior-view();
} else if (e.button == PointerEventButton.right) {
debug("[Developer Shortcut] LoginOverlay: fake login, skip LoginView");
AccountManagerBridge.is-login = true;
debug("[Developer Shortcut] LoginOverlay: AccountManagerBridge.is-login -> true");
ViewManager.prior-view();
}
}
}
// pointer-event(e) => {
// // developer shortcut
// if (e.modifiers.shift && e.modifiers.control && e.kind == PointerEventKind.up) {
// if (e.button == PointerEventButton.left) {
// debug("[Developer Shortcut] LoginOverlay: force close LoginView");
// ViewManager.prior-view();
// } else if (e.button == PointerEventButton.right) {
// debug("[Developer Shortcut] LoginOverlay: fake login, skip LoginView");
// AccountManagerBridge.is-login = true;
// debug("[Developer Shortcut] LoginOverlay: AccountManagerBridge.is-login -> true");
// ViewManager.prior-view();
// }
// }
// }
}
}

Expand Down

0 comments on commit 092e563

Please sign in to comment.