From 157a98966fdb87b4eadd689eb13abf893b4a396a Mon Sep 17 00:00:00 2001 From: Nikita Bobko Date: Sun, 1 Oct 2023 22:11:04 +0200 Subject: [PATCH] WIP! Sun Oct 1 22:11:04 CEST 2023 --- src/tree/TreeNode.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tree/TreeNode.swift b/src/tree/TreeNode.swift index 21fd5b54..e0f83a10 100644 --- a/src/tree/TreeNode.swift +++ b/src/tree/TreeNode.swift @@ -106,8 +106,9 @@ class TreeNode: Equatable { guard let _parent else { return nil } let workspace = workspace if let window = self as? Window { - precondition(workspace.mruWindows.remove(window)) /* todo lock screen -> false assert (for some reasons - all windows are placed into current active workspace) */ + // todo lock screen -> false assert (for some reasons all windows are placed into current active workspace) + // todo chrome close "cmd F" window with esc -> false assert + precondition(workspace.mruWindows.remove(window), "mru.remove \(window.title)") } let index = _parent._children.remove(element: self) ?? errorT("Can't find child in its parent")