Add macos logo

This commit is contained in:
crschnick
2023-10-29 07:09:56 +00:00
parent 8b95184044
commit b165276bd5
3 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -37,7 +37,7 @@ public class App extends Application {
// This is necessary in case XPipe was started through a script as it will have no icon otherwise
if (OsType.getLocal().equals(OsType.MACOS) && AppProperties.get().isDeveloperMode() && AppLogs.get().isWriteToSysout()) {
try {
var iconUrl = Main.class.getResourceAsStream("resources/img/logo/logo_128x128.png");
var iconUrl = Main.class.getResourceAsStream("resources/img/logo/logo_macos_128x128.png");
if (iconUrl != null) {
var awtIcon = ImageIO.read(iconUrl);
Taskbar.getTaskbar().setIconImage(awtIcon);
@@ -69,9 +69,9 @@ public class BaseMode extends OperationMode {
DataStorage.reset();
AppPrefs.reset();
AppExtensionManager.reset();
AppDataLock.unlock();
// Shut down socket server last to keep a non-daemon thread running
AppSocketServer.reset();
AppDataLock.unlock();
TrackEvent.info("mode", "Background mode shutdown finished");
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB