Ladybird/AppKit: Move frameAutosaveName inside if block

This commit is contained in:
Bastiaan van der Plaat 2023-09-29 12:58:06 +02:00 committed by Tim Flynn
parent 0ce9dc4c8e
commit b32b277192
Notes: sideshowbarker 2024-07-16 22:26:05 +09:00

View file

@ -71,10 +71,10 @@ static constexpr CGFloat const WINDOW_HEIGHT = 800;
backing:NSBackingStoreBuffered
defer:NO];
// Remember last window position
self.frameAutosaveName = @"window";
if (self) {
// Remember last window position
self.frameAutosaveName = @"window";
self.web_view = [[LadybirdWebView alloc] init:self];
[self.web_view setPostsBoundsChangedNotifications:YES];