рефакторинг. переносил текущие объекты в другое место
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user