mirror of https://github.com/rusefi/rusefi.git
auto-sync
This commit is contained in:
parent
a66d0211ea
commit
9cb412064f
|
@ -19,7 +19,7 @@ import javax.swing.*;
|
||||||
* @see WavePanel
|
* @see WavePanel
|
||||||
*/
|
*/
|
||||||
public class Launcher extends FrameHelper {
|
public class Launcher extends FrameHelper {
|
||||||
public static final int CONSOLE_VERSION = 20140831;
|
public static final int CONSOLE_VERSION = 20140902;
|
||||||
public static final boolean SHOW_STIMULATOR = true;
|
public static final boolean SHOW_STIMULATOR = true;
|
||||||
|
|
||||||
public Launcher(String port) {
|
public Launcher(String port) {
|
||||||
|
|
|
@ -49,12 +49,18 @@ public class RecentCommands {
|
||||||
public void add(String command) {
|
public void add(String command) {
|
||||||
entries.put(new Entry(command), null);
|
entries.put(new Entry(command), null);
|
||||||
|
|
||||||
content.removeAll();
|
SwingUtilities.invokeLater(new Runnable() {
|
||||||
for (Entry entry : entries.keySet()) {
|
@Override
|
||||||
content.add(createButton(entry));
|
public void run() {
|
||||||
}
|
content.removeAll();
|
||||||
UpDownImage.trueRepaint(content.getParent());
|
for (Entry entry : entries.keySet()) {
|
||||||
UpDownImage.trueLayout(content.getParent());
|
content.add(createButton(entry));
|
||||||
|
}
|
||||||
|
UpDownImage.trueRepaint(content.getParent());
|
||||||
|
UpDownImage.trueLayout(content.getParent());
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private JComponent createButton(final Entry entry) {
|
private JComponent createButton(final Entry entry) {
|
||||||
|
|
Loading…
Reference in New Issue