Skip to content

Commit

Permalink
WIP! Sun Oct 1 22:11:04 CEST 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitabobko committed Oct 1, 2023
1 parent 25a1830 commit 157a989
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/tree/TreeNode.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 157a989

Please sign in to comment.