[O] Optimize a lot of things

This commit is contained in:
Hykilpikonna
2022-11-12 17:06:02 -05:00
parent 18750d7595
commit 2c8c4f51a5
22 changed files with 400 additions and 588 deletions
+2 -1
View File
@@ -2,6 +2,7 @@ package mars;
import mars.util.Binary;
import mars.util.EditorFont;
import mars.venus.RunSpeedPanel;
import mars.venus.editors.jeditsyntax.SyntaxStyle;
import mars.venus.editors.jeditsyntax.SyntaxUtilities;
@@ -448,7 +449,7 @@ public class Settings extends Observable
*/
public boolean getBackSteppingEnabled()
{
return (Globals.program != null && Globals.program.getBackStepper() != null && Globals.program.getBackStepper().enabled());
return RunSpeedPanel.getInstance().getRunSpeed() != RunSpeedPanel.UNLIMITED_SPEED;
}
/**