added icons to all alerts
This commit is contained in:
parent
d91ef3aeac
commit
131c8a491b
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -40,7 +40,7 @@ import javafx.stage.Stage;
|
|||||||
|
|
||||||
public class Main extends Application {
|
public class Main extends Application {
|
||||||
|
|
||||||
private Stage primaryStage;
|
Stage primaryStage;
|
||||||
private String path;
|
private String path;
|
||||||
private String streamingPathWin = System.getProperty("user.home") + "\\Documents\\HomeFlix";
|
private String streamingPathWin = System.getProperty("user.home") + "\\Documents\\HomeFlix";
|
||||||
private String streamingPathLinux = System.getProperty("user.home") + "/HomeFlix";
|
private String streamingPathLinux = System.getProperty("user.home") + "/HomeFlix";
|
||||||
|
@ -260,6 +260,7 @@ public class MainWindowController {
|
|||||||
private ContextMenu menu = new ContextMenu(like, dislike);
|
private ContextMenu menu = new ContextMenu(like, dislike);
|
||||||
Properties props = new Properties();
|
Properties props = new Properties();
|
||||||
|
|
||||||
|
private Main main;
|
||||||
private updater Updater;
|
private updater Updater;
|
||||||
private apiQuery ApiQuery;
|
private apiQuery ApiQuery;
|
||||||
DBController dbController;
|
DBController dbController;
|
||||||
@ -317,6 +318,7 @@ public class MainWindowController {
|
|||||||
alert.setHeaderText("");
|
alert.setHeaderText("");
|
||||||
alert.setTitle("Info");
|
alert.setTitle("Info");
|
||||||
alert.setContentText(linuxBugText);
|
alert.setContentText(linuxBugText);
|
||||||
|
alert.initOwner(main.primaryStage);
|
||||||
alert.showAndWait();
|
alert.showAndWait();
|
||||||
}else{
|
}else{
|
||||||
try {
|
try {
|
||||||
@ -372,6 +374,7 @@ public class MainWindowController {
|
|||||||
alert.setTitle("Info");
|
alert.setTitle("Info");
|
||||||
alert.setHeaderText("Project HomeFlix");
|
alert.setHeaderText("Project HomeFlix");
|
||||||
alert.setContentText(infoText);
|
alert.setContentText(infoText);
|
||||||
|
alert.initOwner(main.primaryStage);
|
||||||
alert.showAndWait();
|
alert.showAndWait();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -515,6 +518,7 @@ public class MainWindowController {
|
|||||||
|
|
||||||
//"Main" Method called in Main.java main() when starting
|
//"Main" Method called in Main.java main() when starting
|
||||||
void setMain(Main main) {
|
void setMain(Main main) {
|
||||||
|
this.main = main;
|
||||||
Updater = new updater(this,buildURL, downloadLink, aktBuildNumber, buildNumber);
|
Updater = new updater(this,buildURL, downloadLink, aktBuildNumber, buildNumber);
|
||||||
dbController = new DBController(this);
|
dbController = new DBController(this);
|
||||||
ApiQuery = new apiQuery(this, dbController);
|
ApiQuery = new apiQuery(this, dbController);
|
||||||
@ -983,6 +987,7 @@ public class MainWindowController {
|
|||||||
alert.setTitle("Error");
|
alert.setTitle("Error");
|
||||||
alert.setHeaderText("");
|
alert.setHeaderText("");
|
||||||
alert.setContentText(msg);
|
alert.setContentText(msg);
|
||||||
|
alert.initOwner(main.primaryStage);
|
||||||
|
|
||||||
// Create expandable Exception.
|
// Create expandable Exception.
|
||||||
StringWriter sw = new StringWriter();
|
StringWriter sw = new StringWriter();
|
||||||
|
Loading…
Reference in New Issue
Block a user