Option to automatically show error dialog on every error

This commit is contained in:
Jindra Petřík
2021-04-02 10:54:57 +02:00
parent f71517cec2
commit 98b1555e5f
5 changed files with 17 additions and 1 deletions

View File

@@ -16,6 +16,7 @@
*/
package com.jpexs.decompiler.flash.gui;
import com.jpexs.decompiler.flash.configuration.Configuration;
import com.jpexs.helpers.Helper;
import java.awt.BorderLayout;
import java.awt.Color;
@@ -319,6 +320,10 @@ public class ErrorLogFrame extends AppFrame {
ex.printStackTrace(new PrintWriter(sw));
}
log(level, msg, sw.toString());
if (!this.isVisible() && Configuration.showDialogOnError.get()) {
setVisible(true);
}
}
@Override