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)
This commit is contained in:
John Colvin committed 2022-08-18 16:17:22 -04:00
1 parent d7474cb8da
commit a76c8ffd98
1 file changed
+1 -1
+1 -1
View File
@@ -55,7 +55,7 @@ namespace mbts.ui.shell {
public async Task<Window> 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;
}