mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-08-17 14:56:29 +00:00
Add macos logo
This commit is contained in:
@@ -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 |
Reference in New Issue
Block a user