mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-19 00:06:16 +01:00
Mac Blocker
This commit is contained in:
parent
7b82b20736
commit
0acb63adb6
@ -173,9 +173,13 @@ public class MonopolyApp extends SimpleApplication implements MonopolyClient, Ga
|
|||||||
final AppSettings settings = new AppSettings(true);
|
final AppSettings settings = new AppSettings(true);
|
||||||
settings.setTitle(lookup("monopoly.name"));
|
settings.setTitle(lookup("monopoly.name"));
|
||||||
try {
|
try {
|
||||||
|
// Prüfen, ob das Betriebssystem ein Mac-System ist
|
||||||
|
if (!System.getProperty("os.name").toLowerCase().contains("mac")) {
|
||||||
settings.setIcons(new Image[]{ImageIO.read(new File("src/main/resources/icons/Uniman.png"))});
|
settings.setIcons(new Image[]{ImageIO.read(new File("src/main/resources/icons/Uniman.png"))});
|
||||||
|
} else {
|
||||||
|
LOGGER.log(Level.INFO, "Icon setting skipped on macOS due to system restrictions.");
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
} catch (IOException e) {
|
||||||
LOGGER.log(Level.ERROR, e.getMessage());
|
LOGGER.log(Level.ERROR, e.getMessage());
|
||||||
}
|
}
|
||||||
settings.setResolution(config.getResolutionWidth(), config.getResolutionHeight());
|
settings.setResolution(config.getResolutionWidth(), config.getResolutionHeight());
|
||||||
|
Loading…
Reference in New Issue
Block a user