Skip to content

Conversation

ddoemonn
Copy link
Contributor

@ddoemonn ddoemonn commented Oct 8, 2025

Closes #39786

Release Notes:

  • Fixed: Settings popup no longer keeps the process alive when closing Zed on Windows

@cla-bot cla-bot bot added the cla-signed The user has signed the Contributor License Agreement label Oct 8, 2025
@ddoemonn
Copy link
Contributor Author

ddoemonn commented Oct 8, 2025

Sorry, there is a little bit of a mess in commits here. I haven't used Windows in years.

@JosephTLyons
Copy link
Collaborator

Thanks for the PR @ddoemonn - we'll check it out.

@Anthony-Eid
Copy link
Contributor

Right now your PR closes the settings window when the workspace that originally opened it is closed. This doesn't cover the edge case where a user has multiple open workspaces.

I think it would be better if the subscription you created did something like this

let Some(app_state) = workspace::AppState::global(cx).upgrade() else {
    return;
};

if app_state.workspace_store.read(cx).workspaces().is_empty() {
// Close settings ui window
}

I'm happy to make the changes if you don't have the time too! Also, this way you won't need to add the subscription as a field on SettingsWindow, you could just detach it.

@Anthony-Eid Anthony-Eid self-requested a review October 9, 2025 17:13
@ddoemonn
Copy link
Contributor Author

ddoemonn commented Oct 9, 2025

Actually @Anthony-Eid if that works for you I wanna make the changes if you can give me little bit time. But of course I do not know it is urgent or not.

@Anthony-Eid
Copy link
Contributor

@ddoemonn No worries! It's semi urgent because I want this to be apart of the stable settings ui release, so If you can make the changes by Monday that would be great. Otherwise, I can do it

@ddoemonn
Copy link
Contributor Author

ddoemonn commented Oct 9, 2025

@Anthony-Eid Monday works for me. Thanks! I will try to be quick.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla-signed The user has signed the Contributor License Agreement community champion

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Windows Beta: Settings popup keeps process alive

3 participants