mirror of
https://github.com/developersu/ns-usbloader.git
synced 2025-05-22 03:05:24 -04:00
v0.2
This commit is contained in:
parent
c4d0959cf3
commit
f5a9ddf8df
13 changed files with 162 additions and 91 deletions
|
@ -35,12 +35,9 @@ public class ServiceWindow {
|
|||
alertBox.getDialogPane().setMinWidth(Region.USE_PREF_SIZE);
|
||||
alertBox.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);
|
||||
alertBox.setResizable(true); // Java bug workaround for JDR11/OpenJFX. TODO: nothing. really.
|
||||
alertBox.getDialogPane().getStylesheets().add("/res/app.css");
|
||||
alertBox.getDialogPane().getStylesheets().add(AppPreferences.getInstance().getTheme());
|
||||
Optional<ButtonType> result = alertBox.showAndWait();
|
||||
if (result.get() == ButtonType.OK)
|
||||
return true;
|
||||
else
|
||||
return false;
|
||||
|
||||
return (result.isPresent() && result.get() == ButtonType.OK);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue