move PWA selector code to before profile validation. register shutdown hook when systray launches

Former-commit-id: 770776b088a5c31ac94ede711814b07a94eb2748
Former-commit-id: bf7ed3a10a036a614dd8866ea152cf00fce889f0
This commit is contained in:
idk
2022-10-31 12:15:29 -04:00
parent a13eab4f05
commit 992e0a038d
2 changed files with 13 additions and 3 deletions

View File

@ -260,6 +260,12 @@ public class I2PBrowser extends I2PCommonBrowser {
if (useSystray) {
logger.info("Starting systray");
systray(args);
Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
public void run() {
shutdownSystray();
}
});
}
} catch (Exception e) {
logger.warning(e.toString());