1

fix: отмена открытия БД

This commit is contained in:
2025-02-27 16:04:13 +03:00
parent d0c50fec34
commit 60d15bd031

View File

@@ -52,6 +52,10 @@ public class MainController implements Initializable {
fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter("content.db", "content.db")); fileChooser.getExtensionFilters().add(new FileChooser.ExtensionFilter("content.db", "content.db"));
File file = fileChooser.showOpenDialog(stage); File file = fileChooser.showOpenDialog(stage);
if (file == null) {
return;
}
manager = new ContentDbManager(file.getAbsolutePath()); manager = new ContentDbManager(file.getAbsolutePath());
rootItem.getChildren().clear(); rootItem.getChildren().clear();