Skip to content

Commit

Permalink
Merge branch 'stable'
Browse files Browse the repository at this point in the history
  • Loading branch information
mindolph committed Nov 11, 2024
2 parents 71fe2b0 + 4cb501c commit 788470b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ public void onWorkspacesRestore(WorkspaceList workspaceList) {
private void loadCollections() {
collectionToggleGroup = new ToggleGroup();
rmiCollectionDefault = new RadioMenuItem("default");
rmiCollectionDefault.setUserData("default");
rmiCollectionDefault.setToggleGroup(collectionToggleGroup);
rmiCollectionDefault.setOnAction(event -> {
// emit event to close all files of current collection and load default collection.
Expand Down Expand Up @@ -484,7 +485,7 @@ private void openWorkspace(File workspaceDir, boolean saveToRecent) {
// save recent workspaces
List<String> recentWorkspacePaths = fxPreferences.getPreference(MINDOLPH_PROJECTS_RECENT, new LinkedList<>());
recentWorkspacePaths.remove(workspaceDir.getPath()); // remove only if contains.
recentWorkspacePaths.add(0, workspaceDir.getPath()); // add to the first.
recentWorkspacePaths.addFirst(workspaceDir.getPath()); // add to the first.
fxPreferences.savePreference(MINDOLPH_PROJECTS_RECENT, recentWorkspacePaths);
initRecentWorkspacesMenu();
}
Expand Down Expand Up @@ -829,7 +830,7 @@ private void showCheckUpdatesToast(String msg) {
@FXML
public void onMenuAbout(ActionEvent event) {
String appVersion = getClass().getPackage().getImplementationVersion();
log.info("app version: " + appVersion);
log.info("app version: %s".formatted(appVersion));
AboutDialog aboutDialog = new AboutDialog();
aboutDialog.showAndWait();
}
Expand Down

0 comments on commit 788470b

Please sign in to comment.