Introduce a new WindowContext::remove_window
API
Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
parent
f12746c4b7
commit
8c7f821d14
8 changed files with 25 additions and 29 deletions
|
@ -273,10 +273,7 @@ impl CopilotCodeVerification {
|
|||
style.auth.content_width,
|
||||
&style.auth.cta_button,
|
||||
cx,
|
||||
|_, _, cx| {
|
||||
let window_id = cx.window_id();
|
||||
cx.remove_window(window_id)
|
||||
},
|
||||
|_, _, cx| cx.remove_window(),
|
||||
)
|
||||
.boxed(),
|
||||
])
|
||||
|
@ -335,8 +332,7 @@ impl CopilotCodeVerification {
|
|||
&style.auth.cta_button,
|
||||
cx,
|
||||
|_, _, cx| {
|
||||
let window_id = cx.window_id();
|
||||
cx.remove_window(window_id);
|
||||
cx.remove_window();
|
||||
cx.platform().open_url(COPILOT_SIGN_UP_URL)
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue