mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-18 10:41:26 +00:00
minor ui state tweaks
[ci skip]
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
*******************************************************************************/
|
||||
package org.cryptomator.launcher;
|
||||
|
||||
import javafx.application.Platform;
|
||||
import org.apache.commons.lang3.SystemUtils;
|
||||
import org.cryptomator.logging.DebugMode;
|
||||
import org.cryptomator.logging.LoggerConfiguration;
|
||||
@@ -90,6 +91,7 @@ public class Cryptomator {
|
||||
try {
|
||||
uiLauncher.launch();
|
||||
shutdownLatch.await();
|
||||
Platform.exit();
|
||||
LOG.info("UI shut down");
|
||||
return 0;
|
||||
} catch (InterruptedException e) {
|
||||
|
||||
@@ -48,7 +48,7 @@ public class UiLauncher {
|
||||
}
|
||||
|
||||
// show window on start?
|
||||
if (settings.startHidden().get()) {
|
||||
if (hasTrayIcon && settings.startHidden().get()) {
|
||||
LOG.debug("Hiding application...");
|
||||
macFunctions.map(MacFunctions::uiState).ifPresent(JniException.ignore(MacApplicationUiState::transformToAgentApplication));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user