no message
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package Visual_DVM_2021.Passes.All;
|
||||
import Common.CurrentAnchestor;
|
||||
import Common.Utils.CommonUtils;
|
||||
import Common.Visual.CommonUI;
|
||||
import Common_old.Current;
|
||||
import Common_old.UI.UI;
|
||||
import Common_old.Utils.Utils;
|
||||
@@ -21,8 +22,8 @@ public class DeleteVersion extends Pass_2021<db_project_info> {
|
||||
current = (Current.getVersion() != null) && Current.getVersion().Home.equals(target.Home);
|
||||
return true;
|
||||
} else {
|
||||
if (((target = Current.getVersion()) != null) && (!CommonUtils.hasUI() ||
|
||||
UI.Warning("Удалить " +
|
||||
if (((target = Current.getVersion()) != null) && (!CommonUI.isActive() ||
|
||||
CommonUI.Warning("Удалить " +
|
||||
((Current.HasProject() && target.Home.equals(Current.getProject().Home)) ? "текущий проект" : "версию ")
|
||||
+ CommonUtils.Brackets(target.name)))) {
|
||||
current = true;
|
||||
@@ -39,7 +40,7 @@ public class DeleteVersion extends Pass_2021<db_project_info> {
|
||||
if ((Current.getProject().Home.getAbsolutePath().startsWith(target.Home.getAbsolutePath())))
|
||||
passes.get(PassCode_2021.CloseCurrentProject).Do();
|
||||
}
|
||||
if (CommonUtils.hasUI()) {
|
||||
if (CommonUI.isActive()) {
|
||||
UI.getVersionsWindow().RemoveVersionFromComparison(target);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user