Disable cancelling of update via notification

This commit is contained in:
Dean Herbert 2021-11-17 11:38:41 +09:00
parent 0146987eba
commit d600a73277
1 changed files with 13 additions and 0 deletions

View File

@ -183,6 +183,19 @@ private void load(OsuColour colours)
} }
}); });
} }
public override void Close()
{
// cancelling updates is not currently supported by the underlying updater.
// only allow dismissing for now.
switch (State)
{
case ProgressNotificationState.Cancelled:
base.Close();
break;
}
}
} }
private class SquirrelLogger : Splat.ILogger, IDisposable private class SquirrelLogger : Splat.ILogger, IDisposable