рефакторинг. переносил текущие объекты в другое место

This commit is contained in:
2024-10-13 22:08:13 +03:00
parent 09b64218bd
commit 6afa2dc892
240 changed files with 1472 additions and 1518 deletions

View File

@@ -130,7 +130,7 @@ public class Pass<T> {
try {
Global.mainModule.getDb().Update(stats);
FAPasses.sort(new SortPassesByStats());
if (Current.HasProject())
if (Global.mainModule.HasProject())
UI.fastAccessMenuBar.Refresh();
} catch (Exception ex) {
Utils_.MainLog.PrintException(ex);
@@ -306,10 +306,10 @@ public class Pass<T> {
animation_sem.acquire();
//---
form = null;
Current_.set(Current.PassForm, null);
Global.mainModule.set(Current.PassForm, null);
System.gc();
//--
Current_.set(Current.PassForm, form = new PassForm(this));
Global.mainModule.set(Current.PassForm, form = new PassForm(this));
dispatcher = new SwingWorker() {
@Override
protected Object doInBackground() {