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:
parent
19cc86a2d4
commit
99cca59c84
5 changed files with 203 additions and 222 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue