Skip to content

Commit

Permalink
Fix new version pop up appearing behind main window.
Browse files Browse the repository at this point in the history
  • Loading branch information
melgu committed Jun 8, 2020
1 parent b38c580 commit caa5a5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions TidalSwift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 24;
CURRENT_PROJECT_VERSION = 25;
DEVELOPMENT_ASSET_PATHS = "TidalSwift/Preview\\ Content";
DEVELOPMENT_TEAM = V7E5P7292M;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down Expand Up @@ -1052,7 +1052,7 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 24;
CURRENT_PROJECT_VERSION = 25;
DEVELOPMENT_ASSET_PATHS = "TidalSwift/Preview\\ Content";
DEVELOPMENT_TEAM = V7E5P7292M;
ENABLE_HARDENED_RUNTIME = YES;
Expand Down
8 changes: 4 additions & 4 deletions TidalSwift/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,6 @@ class AppDelegate: NSObject, NSApplicationDelegate {
} else {
viewState.maxHistoryItems = 100
}

if updateNotification.checkForUpdates() {
updateNotification.showNewVersionView()
}
}

// Space for Play/Pause
Expand Down Expand Up @@ -296,6 +292,10 @@ class AppDelegate: NSObject, NSApplicationDelegate {

window.makeKeyAndOrderFront(nil)

if updateNotification.checkForUpdates() {
updateNotification.showNewVersionView()
}

sc.session.helpers.offline.syncAllOfflinePlaylistsAndFavoriteTracks()

// Shouldn't interfere with View State as the view doesn't replace the existing one if it's not New Releases
Expand Down

0 comments on commit caa5a5b

Please sign in to comment.