Skip to content

Commit

Permalink
Trying a fix for a random deadly error - 3
Browse files Browse the repository at this point in the history
  • Loading branch information
pskowronek committed Aug 18, 2023
1 parent c2c653a commit 544506a
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions mucommander-core/src/main/java/com/mucommander/Application.java
Original file line number Diff line number Diff line change
@@ -510,6 +510,17 @@ private void run() {
splashScreen.dispose();
splashScreen = null;
}

// Enable system notifications, only after MainFrame is created as SystemTrayNotifier needs to retrieve
// a MainFrame instance
if (MuConfigurations.getPreferences()
.getVariable(MuPreference.ENABLE_SYSTEM_NOTIFICATIONS,
MuPreferences.DEFAULT_ENABLE_SYSTEM_NOTIFICATIONS)) {
printStartupMessage("Enabling system notifications...");
if (com.mucommander.ui.notifier.NotifierProvider.isAvailable())
com.mucommander.ui.notifier.NotifierProvider.getNotifier().setEnabled(true);
}

LOGGER.error("muC UI presented");
// Done launching, wake up threads waiting for the application being launched.
// Important: this must be done before disposing the splash screen, as this would otherwise create a
@@ -521,16 +532,6 @@ private void run() {
}
}).start();

// Enable system notifications, only after MainFrame is created as SystemTrayNotifier needs to retrieve
// a MainFrame instance
if (MuConfigurations.getPreferences()
.getVariable(MuPreference.ENABLE_SYSTEM_NOTIFICATIONS,
MuPreferences.DEFAULT_ENABLE_SYSTEM_NOTIFICATIONS)) {
printStartupMessage("Enabling system notifications...");
if (com.mucommander.ui.notifier.NotifierProvider.isAvailable())
com.mucommander.ui.notifier.NotifierProvider.getNotifier().setEnabled(true);
}

// Check for newer version unless it was disabled
if (MuConfigurations.getPreferences()
.getVariable(MuPreference.CHECK_FOR_UPDATE, MuPreferences.DEFAULT_CHECK_FOR_UPDATE)) {

0 comments on commit 544506a

Please sign in to comment.