mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-16 11:06:06 -04:00
Fix updates not showing 'check failed' when no internect connection.
This commit is contained in:
parent
cc57a1960a
commit
319d40fe37
@ -50,11 +50,17 @@ namespace Launcher {
|
||||
}
|
||||
|
||||
Build dev, stable;
|
||||
public override void Tick() {
|
||||
if( checkTask.Done ) return;
|
||||
public override void Tick() {;
|
||||
if( checkTask.Done && checkTask.Exception == null ) return;
|
||||
if( !checkTask.TaskTick( SuccessfulUpdateCheck, this ) ) {
|
||||
view.LastStable = DateTime.MaxValue;
|
||||
view.LastDev = DateTime.MaxValue;
|
||||
checkTask.Exception = null;
|
||||
|
||||
LauncherWidget w = widgets[view.devIndex - 1];
|
||||
game.ClearArea( w.X, w.Y, w.Width, w.Height );
|
||||
w = widgets[view.relIndex - 1];
|
||||
game.ClearArea( w.X, w.Y, w.Width, w.Height );
|
||||
Resize();
|
||||
}
|
||||
}
|
||||
|
@ -70,7 +70,7 @@ namespace Launcher {
|
||||
}
|
||||
|
||||
string GetDateString( DateTime last ) {
|
||||
if( last == DateTime.MaxValue ) return "Update check failed";
|
||||
if( last == DateTime.MaxValue ) return "&cCheck failed";
|
||||
if( last == DateTime.MinValue ) return "Checking..";
|
||||
return last.ToString( dateFormat );
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user