mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-18 19:33:40 +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);
|
||||
settings.setTitle(lookup("monopoly.name"));
|
||||
try {
|
||||
settings.setIcons(new Image[]{ImageIO.read(new File("src/main/resources/icons/Uniman.png"))});
|
||||
}
|
||||
catch (IOException e) {
|
||||
// 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"))});
|
||||
} else {
|
||||
LOGGER.log(Level.INFO, "Icon setting skipped on macOS due to system restrictions.");
|
||||
}
|
||||
} catch (IOException e) {
|
||||
LOGGER.log(Level.ERROR, e.getMessage());
|
||||
}
|
||||
settings.setResolution(config.getResolutionWidth(), config.getResolutionHeight());
|
||||
|
Loading…
Reference in New Issue
Block a user