trackeditor: show selected properties tab

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@9328 30fe4595-0a0c-4342-8851-515496e4dcbd
This commit is contained in:
iobyte 2024-02-19 19:56:14 +00:00
parent 15188465a4
commit 64085c8de3
2 changed files with 9 additions and 2 deletions

View File

@ -29,6 +29,7 @@ import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.SwingUtilities;
import gui.EditorFrame;
import utils.Editor;
@ -116,7 +117,13 @@ public class PropertiesDialog extends JDialog
tabbedPane.addTab("Lights", null, getTrackLightProperties(), null);
tabbedPane.addTab("Sectors", null, getSectorProperties(), null);
tabbedPane.addTab("Image", null, getImageProperties(), null);
tabbedPane.setSelectedIndex(editorFrame.getProject().getPropertiesEditorTab());
SwingUtilities.invokeLater( new Runnable()
{
public void run()
{
tabbedPane.setSelectedIndex(editorFrame.getProject().getPropertiesEditorTab());
}
});
}
return tabbedPane;
}

View File

@ -34,7 +34,7 @@ public class Properties
private static Properties instance = new Properties();
private Vector<ActionListener> propertiesListeners = new Vector<ActionListener>();
public final String title = "sd2-trackeditor";
public final String version = "1.4.47";
public final String version = "1.4.48";
private String path;
private double imageScale = 1;