From a76c8ffd985de1f7b2eaf369df067d37c146297c Mon Sep 17 00:00:00 2001 From: John Colvin Date: Thu, 18 Aug 2022 15:57:42 -0400 Subject: [PATCH] fix: Fix typo 'is not null' -> 'is null' Bugs (fixed): * Window size isn't restored if window has multiple tabs Cause: The typo flips the bool arg that indicates whether or not a window should be measured and fit to size (as happens when a window is opened for the first time) --- src/client/spark/view/Shell/WindowManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/spark/view/Shell/WindowManager.cs b/src/client/spark/view/Shell/WindowManager.cs index 6469327bc..1689430e6 100644 --- a/src/client/spark/view/Shell/WindowManager.cs +++ b/src/client/spark/view/Shell/WindowManager.cs @@ -55,7 +55,7 @@ namespace mbts.ui.shell { public async Task create_window(TabDocument document, WindowPosition position = null) { var key = document.ViewModel.host_id; if (_windows.TryGetValue(key, out var window)) { - await window.add_document(document, position?.tab_index, position is not null); + await window.add_document(document, position?.tab_index, position is null); return window; }