From 63494cf5c9157db76e57ccddb241d759b716813f Mon Sep 17 00:00:00 2001
From: Andrey Kleshchev <andreykproductengine@lindenlab.com>
Date: Thu, 12 Jan 2023 23:33:38 +0200
Subject: [PATCH] SL-12456 Potential fix for NSPersistentUIFileManager crash

NSPersistentUIFileManager is supposed to be responsible for restoring window position and size
---
 indra/llwindow/llwindowmacosx-objc.mm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/indra/llwindow/llwindowmacosx-objc.mm b/indra/llwindow/llwindowmacosx-objc.mm
index 5ec9b017cf1..3693042eef2 100644
--- a/indra/llwindow/llwindowmacosx-objc.mm
+++ b/indra/llwindow/llwindowmacosx-objc.mm
@@ -217,6 +217,7 @@ NSWindowRef createNSWindow(int x, int y, int width, int height)
 													  styleMask:NSTitledWindowMask | NSResizableWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSTexturedBackgroundWindowMask backing:NSBackingStoreBuffered defer:NO];
 	[window makeKeyAndOrderFront:nil];
 	[window setAcceptsMouseMovedEvents:TRUE];
+    [window setRestorable:FALSE]; // Viewer manages state from own settings
 	return window;
 }
 
-- 
GitLab