* @j2sIgnore
*/
{
- boolean defaultStartupFile = Cache.getDefault("STARTUP_FILE",
- null) == null;
file = Cache.getDefault("STARTUP_FILE",
Cache.getDefault("www.jalview.org", "https://www.jalview.org")
+ "/examples/exampleFile_2_7.jvp");
file.replace("2_7.jar", "2_7.jvp");
// and remove the stale setting
Cache.removeProperty("STARTUP_FILE");
- defaultStartupFile = true;
}
protocol = AppletFormatAdapter.checkProtocol(file);
startUpAlframe = fileLoader.LoadFileWaitTillLoaded(file, protocol,
format);
- if (defaultStartupFile)
- {
- Console.debug("Resetting up-to-date flag for startup file");
- startUpAlframe.getViewport().setSavedUpToDate(true);
- }
+ // don't ask to save when quitting if only the startup file has been
+ // opened
+ Console.debug("Resetting up-to-date flag for startup file");
+ startUpAlframe.getViewport().setSavedUpToDate(true);
// extract groovy arguments before anything else.
}
{
try
{
- UIManager.setLookAndFeel("com.formdev.flatlaf.FlatMacLightLaf");
+ UIManager.setLookAndFeel(
+ "com.formdev.flatlaf.themes.FlatMacLightLaf");
set = true;
Console.debug("Using FlatMacLightLaf");
} catch (ClassNotFoundException | InstantiationException
Console.debug("Using FlatMacLightLaf");
set = true;
}
- else if (SystemInfo.isWindows)
+ if (!set)
{
try
{