mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
SPARK-1258
DISABLE_EXIT DISABLE_GROUP_ADD SPARK-1257 when changing from JavaDefault to Substance redecorate Titlebars (note that not all JavaDefaultSkins support this fully(e.g. cde/motif), restart in that case corrected loading of Metal,Nimbus and CDE/Motif git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12162 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
wolf.posdorfer
parent
c97166a9f2
commit
78f8e6435a
@ -285,7 +285,9 @@ public final class MainWindow extends ChatFrame implements ActionListener {
|
||||
Log.error(ex);
|
||||
}
|
||||
// Close application.
|
||||
System.exit(1);
|
||||
if(!Default.getBoolean("DISABLE_EXIT"))
|
||||
System.exit(1);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
@ -415,8 +417,8 @@ public final class MainWindow extends ChatFrame implements ActionListener {
|
||||
}
|
||||
connectMenu.add(alwaysOnTopItem);
|
||||
|
||||
|
||||
connectMenu.addSeparator();
|
||||
if(!Default.getBoolean("DISABLE_EXIT"))
|
||||
connectMenu.addSeparator();
|
||||
|
||||
//EventQueue.invokeLater(new Runnable() {
|
||||
// public void run() {
|
||||
@ -437,13 +439,13 @@ public final class MainWindow extends ChatFrame implements ActionListener {
|
||||
}
|
||||
});
|
||||
|
||||
if (Spark.isWindows() || Spark.isLinux()) {
|
||||
if ((Spark.isWindows() || Spark.isLinux()) && !Default.getBoolean("DISABLE_EXIT")) {
|
||||
connectMenu.add(logoutMenuItem);
|
||||
connectMenu.add(logoutWithStatus);
|
||||
connectMenu.addSeparator();
|
||||
}
|
||||
|
||||
if (!Spark.isMac()) {
|
||||
if (!Spark.isMac() && !Default.getBoolean("DISABLE_EXIT")) {
|
||||
connectMenu.add(exitMenuItem);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user