Versionsabzeige korrigiert
This commit is contained in:
@@ -201,12 +201,12 @@ internal partial class StundenViewModel : ObservableObject, IQueryAttributable,
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
private async Task LoadData() {
|
private async Task LoadData() {
|
||||||
try {
|
try {
|
||||||
BaseResponse dat = await HoursBase.LoadBase("hours&year="+ DateToday.ToString("yyyy") + "&month=" + DateToday.ToString("MM"));
|
BaseResponse dat = await HoursBase.LoadBase("hours&year=" + DateToday.ToString("yyyy") + "&month=" + DateToday.ToString("MM"));
|
||||||
_hour = dat.hour;
|
_hour = dat.hour;
|
||||||
Settings = dat.settings;
|
Settings = dat.settings;
|
||||||
|
|
||||||
if (Settings.Version != AppInfo.Current.VersionString.Substring(0,5)) {
|
if (Settings.Version != AppInfo.Current.VersionString.Substring(0, 5)) {
|
||||||
InfoEvent?.Invoke(this, "Version: " + AppInfo.Current.VersionString.Substring(0, 5) + " verfügbar (" + dat.settings.Version + " installiert)");
|
InfoEvent?.Invoke(this, "Version: " + Settings.Version + " verfügbar (" + AppInfo.Current.VersionString.Substring(0, 5) + " installiert)");
|
||||||
}
|
}
|
||||||
//_hour = await HoursBase.LoadData();
|
//_hour = await HoursBase.LoadData();
|
||||||
RefreshProperties();
|
RefreshProperties();
|
||||||
@@ -260,9 +260,9 @@ internal partial class StundenViewModel : ObservableObject, IQueryAttributable,
|
|||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
DayTimes = new List<DayTime>();
|
DayTimes = new List<DayTime>();
|
||||||
//TODO: hier könnte auch ein Fehler kommen, dann wäre InfoEvent falsch.
|
//TODO: hier könnte auch ein Fehler kommen, dann wäre InfoEvent falsch.
|
||||||
|
|
||||||
if (Settings.Version!=null && Settings.Version != AppInfo.Current.VersionString.Substring(0, 5)) {
|
if (Settings.Version != null && Settings.Version != AppInfo.Current.VersionString.Substring(0, 5)) {
|
||||||
InfoEvent?.Invoke(this, "Version: " + AppInfo.Current.VersionString.Substring(0, 5) + " verfügbar (" + Settings.Version + " installiert)");
|
InfoEvent?.Invoke(this, "Version: " + Settings.Version + " verfügbar (" + AppInfo.Current.VersionString.Substring(0, 5) + " installiert)");
|
||||||
} else { InfoEvent?.Invoke(this, e.Message); }
|
} else { InfoEvent?.Invoke(this, e.Message); }
|
||||||
} finally {
|
} finally {
|
||||||
OnPropertyChanged(nameof(DayTotal));
|
OnPropertyChanged(nameof(DayTotal));
|
||||||
|
|||||||
Reference in New Issue
Block a user