Restructure verification code prompting to open a window instead

Also, prevent multiple calls to `sign_in` from racing with each other.
This commit is contained in:
Antonio Scandurra 2023-03-24 12:05:07 +01:00 committed by Mikayla Maki
parent 19cc86a2d4
commit 99cca59c84
5 changed files with 203 additions and 222 deletions

View file

@ -473,6 +473,7 @@ impl Window {
WindowBounds::Fixed(rect) => {
let screen_frame = screen.visibleFrame();
let ns_rect = rect.to_ns_rect();
dbg!(screen_frame.as_CGRect(), ns_rect.as_CGRect());
if ns_rect.intersects(screen_frame) {
native_window.setFrame_display_(ns_rect, YES);
} else {