Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Attempt to load the UI when a new track starts.

Sometimes it doesn't load on initial auth, e.g.
when there is a modal message and the main window
isn't loaded.
  • Loading branch information...
commit 60411dc086a841a81febd0479c8a8976b8bae07c 1 parent c45111c
@georgebrock authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 LastifyController.m
View
4 LastifyController.m
@@ -66,6 +66,9 @@ - (void)initLastfmConnection
- (void)loadUserInterface
{
+ if(drawer != nil || [[SPController sharedController] mainWindow] == nil)
+ return;
+
[NSBundle loadNibNamed:@"LastifyInterface" owner:self];
[statusImage setImage:nil];
@@ -218,6 +221,7 @@ - (IBAction)taggingOK:(id)sender
- (void)startNewTrack:(NSString*)trackName byArtist:(NSString*)artistName
{
NSLog(@"LASTIFY track started: \"%@\" by %@", trackName, artistName);
+ [self loadUserInterface];
self.currentTrack = trackName;
self.currentArtist = artistName;
}
Please sign in to comment.
Something went wrong with that request. Please try again.