Cleanup NSDrawer leftovers from AppController.
parent
a112440849
commit
84b473f847
|
@ -33,8 +33,6 @@
|
|||
IBOutlet NSButton *randomizeButton;
|
||||
|
||||
IBOutlet NSTextField *totalTimeField;
|
||||
|
||||
IBOutlet NSDrawer *infoDrawer;
|
||||
|
||||
IBOutlet PlaylistView *playlistView;
|
||||
|
||||
|
@ -82,10 +80,6 @@
|
|||
|
||||
- (IBAction)feedback:(id)sender;
|
||||
|
||||
- (IBAction)toggleInfoDrawer:(id)sender;
|
||||
- (void)drawerDidOpen:(NSNotification *)notification;
|
||||
- (void)drawerDidClose:(NSNotification *)notification;
|
||||
|
||||
- (void)initDefaults;
|
||||
|
||||
//Fun stuff
|
||||
|
|
|
@ -316,27 +316,6 @@
|
|||
[theApplication replyToOpenOrPrint:NSApplicationDelegateReplySuccess];
|
||||
}
|
||||
|
||||
- (IBAction)toggleInfoDrawer:(id)sender
|
||||
{
|
||||
[mainWindow makeKeyAndOrderFront:self];
|
||||
|
||||
[infoDrawer toggle:self];
|
||||
}
|
||||
|
||||
- (void)drawerDidOpen:(NSNotification *)notification
|
||||
{
|
||||
if ([notification object] == infoDrawer) {
|
||||
[infoButton setState:NSOnState];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)drawerDidClose:(NSNotification *)notification
|
||||
{
|
||||
if ([notification object] == infoDrawer) {
|
||||
[infoButton setState:NSOffState];
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)openLiberapayPage:(id)sender
|
||||
{
|
||||
[[NSWorkspace sharedWorkspace] openURL:[NSURL URLWithString:@"https://liberapay.com/kode54"]];
|
||||
|
|
Loading…
Reference in New Issue