mirror of
https://github.com/igniterealtime/Spark.git
synced 2025-12-01 12:27:58 +00:00
Dont update after one Minute if updates disabled
git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@12357 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
committed by
wolf.posdorfer
parent
5a58f5c3de
commit
1187f8d9ba
@ -570,6 +570,7 @@ public final class MainWindow extends ChatFrame implements ActionListener {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (!Default.getBoolean("DISABLE_UPDATES")) {
|
||||||
// Execute spark update checker after one minute.
|
// Execute spark update checker after one minute.
|
||||||
final TimerTask task = new SwingTimerTask() {
|
final TimerTask task = new SwingTimerTask() {
|
||||||
public void doRun() {
|
public void doRun() {
|
||||||
@ -578,6 +579,7 @@ public final class MainWindow extends ChatFrame implements ActionListener {
|
|||||||
};
|
};
|
||||||
|
|
||||||
TaskEngine.getInstance().schedule(task, 60000);
|
TaskEngine.getInstance().schedule(task, 60000);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user