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

Close all dialog windows after starting an update download

Closes 
This commit is contained in:
chylex 2017-05-13 16:34:11 +02:00
parent 1d73691ef4
commit 39687171e9

View File

@ -279,6 +279,12 @@ private void plugins_PluginChangedState(object sender, PluginChangedStateEventAr
}
private void updates_UpdateAccepted(object sender, UpdateAcceptedEventArgs e){
foreach(Form form in Application.OpenForms.Cast<Form>().Reverse()){
if (form is FormSettings || form is FormPlugins || form is FormAbout){
form.Close();
}
}
Hide();
FormUpdateDownload downloadForm = new FormUpdateDownload(e.UpdateInfo);