Remove unnecessary if check
This commit is contained in:
parent
3106478510
commit
f60315141b
1 changed files with 41 additions and 44 deletions
|
@ -59,10 +59,8 @@ bool ScopedDisableResize::disable_resize_ = false;
|
||||||
- (id)initWithFrame:(NSRect)frame {
|
- (id)initWithFrame:(NSRect)frame {
|
||||||
self = [super initWithFrame:frame];
|
self = [super initWithFrame:frame];
|
||||||
|
|
||||||
if (self) {
|
|
||||||
mouse_inside_ = NO;
|
mouse_inside_ = NO;
|
||||||
|
|
||||||
// create buttons
|
|
||||||
NSButton* closeButton = [NSWindow standardWindowButton:NSWindowCloseButton
|
NSButton* closeButton = [NSWindow standardWindowButton:NSWindowCloseButton
|
||||||
forStyleMask:NSTitledWindowMask];
|
forStyleMask:NSTitledWindowMask];
|
||||||
NSButton* minitButton = [NSWindow standardWindowButton:NSWindowMiniaturizeButton
|
NSButton* minitButton = [NSWindow standardWindowButton:NSWindowMiniaturizeButton
|
||||||
|
@ -109,7 +107,6 @@ bool ScopedDisableResize::disable_resize_ = false;
|
||||||
|
|
||||||
// refresh for initial conditions
|
// refresh for initial conditions
|
||||||
[self setNeedsDisplayForButtons];
|
[self setNeedsDisplayForButtons];
|
||||||
}
|
|
||||||
|
|
||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue