1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 19:15:06 +00:00

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

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];