ElyMark: an unasked end keeps the lock and points (M-06)
GPUI clears windows after the quit observers, so the desk's release ran close() and wiped what on_app_quit had kept. hold() lets the lock go unclosed; release then finds nothing to close. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c5f614d095
commit
ad97f25ea4
4 files changed
+29
-2
No files matched your search
@@ -257,7 +257,7 @@ pub fn open(app: AppId, window: &mut Window, cx: &mut App) -> Entity<Root> {
|
||||
cx.on_app_quit(|desk, cx| {
|
||||
// A system end skips asking: unsaved tabs keep points.
|
||||
if desk.core.tabs.iter().any(|tab| tab.dirty(cx)) {
|
||||
log::warn!("mark: quit with unsaved tabs; points stay");
|
||||
desk.keeping.hold();
|
||||
} else {
|
||||
desk.keeping.close();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user