mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 08:50:52 +01:00
smoothness
This commit is contained in:
parent
fc227923cb
commit
b4281dff56
@ -39,11 +39,17 @@ public class Main extends Application {
|
||||
System.exit(0);
|
||||
});
|
||||
|
||||
new Thread(() -> {
|
||||
if (!AdminValidator.isAdmin()) {
|
||||
Alert alert = new Alert(Alert.AlertType.ERROR, "G-Earth needs admin privileges in order to work properly, please restart G-Earth unless you know what you're doing", ButtonType.OK);
|
||||
Platform.runLater(() -> {
|
||||
Alert alert = new Alert(Alert.AlertType.ERROR, "G-Earth needs admin privileges in order to work properly, please restart G-Earth with admin permissions unless you know what you're doing", ButtonType.OK);
|
||||
alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);
|
||||
alert.show();
|
||||
});
|
||||
|
||||
}
|
||||
}).start();
|
||||
|
||||
}
|
||||
|
||||
public static String[] args;
|
||||
|
Loading…
Reference in New Issue
Block a user