no message

This commit is contained in:
2024-10-08 22:33:49 +03:00
parent 90546fc62e
commit e0974fe4a8
246 changed files with 1170 additions and 849 deletions

View File

@@ -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);
}
}