1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-05-12 05:34:06 +02:00

Remove dismissed update config entry after accepting an update

This commit is contained in:
chylex 2017-11-18 02:53:25 +01:00
parent b4e936c530
commit 03465c4ab0

View File

@ -259,6 +259,11 @@ private static void plugins_Executed(object sender, PluginErrorEventArgs e){
private void updates_UpdateAccepted(object sender, UpdateEventArgs e){
this.InvokeAsyncSafe(() => {
FormManager.CloseAllDialogs();
if (!string.IsNullOrEmpty(Config.DismissedUpdate)){
Config.DismissedUpdate = null;
Config.Save();
}
updates.BeginUpdateDownload(this, e.UpdateInfo, update => {
if (update.DownloadStatus == UpdateDownloadStatus.Done){