File tree Expand file tree Collapse file tree
src/main/java/de/doubleslash/keeptime Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff 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 ),
You can’t perform that action at this time.
0 commit comments