Skip to content

Commit

Permalink
Fix printer refresh on MacOS
Browse files Browse the repository at this point in the history
Per #479, #393
  • Loading branch information
tresf committed Sep 6, 2019
1 parent de11798 commit 752df06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/qz/utils/SystemUtilities.java
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ public static boolean isLinux() {
* @return {@code true} if Unix, {@code false} otherwise
*/
public static boolean isUnix() {
return (OS_NAME.contains("nix") || OS_NAME.contains("nux") || OS_NAME.indexOf("aix") > 0 || OS_NAME.contains("sunos"));
return (OS_NAME.contains("mac") || OS_NAME.contains("nix") || OS_NAME.contains("nux") || OS_NAME.indexOf("aix") > 0 || OS_NAME.contains("sunos"));
}

/**
Expand Down Expand Up @@ -237,7 +237,7 @@ public static boolean setSystemLookAndFeel() {
try {
UIManager.getDefaults().put("Button.showMnemonics", Boolean.TRUE);
boolean darkulaThemeNeeded = true;
if(isUnix() && UbuntuUtilities.isDarkMode()) {
if(!isMac() && (isUnix() && UbuntuUtilities.isDarkMode())) {
darkulaThemeNeeded = false;
}
if(isDarkMode() && darkulaThemeNeeded) {
Expand Down

0 comments on commit 752df06

Please sign in to comment.