1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2025-04-09 06:15:49 +02:00

Fix some config options not being committed before opening Manage Options

This commit is contained in:
chylex 2017-08-30 12:41:54 +02:00
parent c28615d548
commit 7601645c12

View File

@ -54,8 +54,17 @@ private void FormSettings_FormClosing(object sender, FormClosingEventArgs e){
}
private void btnManageOptions_Click(object sender, EventArgs e){
foreach(SettingsTab tab in tabs.Values){
if (tab.IsInitialized){
tab.Control.OnClosing();
}
}
using(DialogSettingsManage dialog = new DialogSettingsManage(plugins)){
if (dialog.ShowDialog() == DialogResult.OK){
FormClosing -= FormSettings_FormClosing;
browser.ResumeNotification();
ShouldReloadBrowser = dialog.ShouldReloadBrowser;
Close();
}