After import update main window settings

This commit is contained in:
Jaex 2016-02-12 00:37:13 +02:00
parent 13e928a6df
commit aeecd30850
2 changed files with 16 additions and 8 deletions

View file

@ -470,10 +470,13 @@ private void btnExport_Click(object sender, EventArgs e)
ExportImportManager.Export(sfd.FileName);
},
() =>
{
if (!IsDisposed)
{
pbExportImport.Visible = false;
btnExport.Enabled = true;
btnImport.Enabled = true;
}
});
}
}
@ -497,11 +500,16 @@ private void btnImport_Click(object sender, EventArgs e)
Program.LoadAllSettings();
},
() =>
{
if (!IsDisposed)
{
UpdateSettings();
pbExportImport.Visible = false;
btnExport.Enabled = true;
btnImport.Enabled = true;
}
Program.MainForm.UpdateSettings();
});
}
}

View file

@ -523,7 +523,7 @@ private void CleanCustomClipboardFormats()
}
}
private void UpdateSettings()
public void UpdateSettings()
{
niTray.Visible = Program.Settings.ShowTray;