mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2024-11-23 17:00: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);
|
System.exit(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!AdminValidator.isAdmin()) {
|
new Thread(() -> {
|
||||||
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);
|
if (!AdminValidator.isAdmin()) {
|
||||||
alert.getDialogPane().setMinHeight(Region.USE_PREF_SIZE);
|
Platform.runLater(() -> {
|
||||||
alert.show();
|
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;
|
public static String[] args;
|
||||||
|
Loading…
Reference in New Issue
Block a user