From 7518864938488a107bd7637c2fd6fb96c7326c46 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 17 Apr 2013 18:14:05 -0600 Subject: [PATCH] Set initial size of config window to 800x600 --- native/atom_window_controller.mm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/native/atom_window_controller.mm b/native/atom_window_controller.mm index e94cf71e6..4d15b6d13 100644 --- a/native/atom_window_controller.mm +++ b/native/atom_window_controller.mm @@ -96,6 +96,12 @@ [self setWindowFrameAutosaveName:@"AtomWindow"]; NSColor *background = [NSColor colorWithDeviceRed:(51.0/255.0) green:(51.0/255.0f) blue:(51.0/255.0f) alpha:1.0]; [self.window setBackgroundColor:background]; + if (self.isConfig) { + NSRect frame = self.window.frame; + frame.size.width = 800; + frame.size.height = 600; + [self.window setFrame:frame display: YES]; + } [self showWindow:self]; }