создание группы из папки.

This commit is contained in:
2023-11-20 22:10:21 +03:00
parent 0cfa94eba8
commit 577803515e
10 changed files with 126 additions and 34 deletions

View File

@@ -32,12 +32,6 @@ public class OpenCurrentProject extends Pass_2021<db_project_info> {
protected boolean needsAnimation() {
return true;
}
void restoreBrowserPath() {
String last_dir_home =
Global.db.settings.get(SettingName.ProjectsSearchDirectory).Value;
if (!last_dir_home.isEmpty())
directoryChooser.SetCurrentDirectory(last_dir_home);
}
boolean needsOpen() {
return !Current.HasProject() || !Current.getProject().Home.equals(dir);
}
@@ -48,7 +42,7 @@ public class OpenCurrentProject extends Pass_2021<db_project_info> {
dir = null;
target = null;
if (args.length == 0) {
restoreBrowserPath();
Utils.RestoreSelectedDirectory(directoryChooser);
dir = directoryChooser.ShowDialog();
} else {
Object arg = args[0];