Skip to content

Commit 58405c7

Browse files
committed
changed logic to not check if "linux" but check "not windows" to fix issue on mac (which does not evaluate to "is linux")
1 parent 3028b59 commit 58405c7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/main/java/de/doubleslash/keeptime/App.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ private void initialisePopupUI(final Stage primaryStage) throws IOException {
239239
final ViewControllerPopup viewControllerPopupController = loader.getController();
240240
viewControllerPopupController.setStage(popupViewStage);
241241

242-
if (!OS.isLinux()) {
242+
if (OS.isWindows()) {
243243
globalScreenListener = new GlobalScreenListener();
244244
globalScreenListener.register(model.useHotkey.get());
245245
globalScreenListener.setViewController(viewControllerPopupController);

src/main/java/de/doubleslash/keeptime/view/SettingsController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private void initialize() {
183183
LOG.debug("load substages");
184184
LOG.debug("set version label text");
185185

186-
if (OS.isLinux()) {
186+
if (!OS.isWindows()) {
187187
LOG.info("Disabling unsupported settings for Linux.");
188188
useHotkeyCheckBox.setDisable(true);
189189
hotkeyLabel.setDisable(true);
@@ -208,7 +208,7 @@ private void initialize() {
208208
saveButton.setOnAction(ae -> {
209209
LOG.info("Save clicked");
210210

211-
if (OS.isLinux()) {
211+
if (!OS.isWindows()) {
212212
if (hoverBackgroundColor.getValue().getOpacity() < 0.5) {
213213
hoverBackgroundColor.setValue(Color.rgb((int) (hoverBackgroundColor.getValue().getRed() * 255),
214214
(int) (hoverBackgroundColor.getValue().getGreen() * 255),

0 commit comments

Comments
 (0)