Баг. в нескольких местах неправильно определялось рабочее пространство визуализатора по умолчанию.
This commit is contained in:
@@ -3,7 +3,6 @@ import Common.Current;
|
||||
import Common.Global;
|
||||
import Common.UI.UI;
|
||||
import Common.Utils.Utils;
|
||||
import GlobalData.Settings.SettingName;
|
||||
import Visual_DVM_2021.Passes.PassCode_2021;
|
||||
import Visual_DVM_2021.Passes.Pass_2021;
|
||||
|
||||
@@ -22,7 +21,7 @@ public class DeleteDownloadedBugReports extends Pass_2021<Vector<File>> {
|
||||
@Override
|
||||
protected boolean canStart(Object... args) throws Exception {
|
||||
target = null;
|
||||
File workspace = new File(Global.db.settings.get(SettingName.Workspace).toString());
|
||||
File workspace = Global.visualiser.getWorkspace();
|
||||
File[] files = workspace.listFiles(pathname -> pathname.isDirectory() && pathname.getName().toLowerCase().startsWith("bugreport_"));
|
||||
if (files != null) {
|
||||
target = new Vector<>(Arrays.asList(files));
|
||||
|
||||
Reference in New Issue
Block a user