mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-05 20:54:31 +13:00
After import update main window settings
This commit is contained in:
parent
13e928a6df
commit
aeecd30850
2 changed files with 16 additions and 8 deletions
|
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -523,7 +523,7 @@ private void CleanCustomClipboardFormats()
|
|||
}
|
||||
}
|
||||
|
||||
private void UpdateSettings()
|
||||
public void UpdateSettings()
|
||||
{
|
||||
niTray.Visible = Program.Settings.ShowTray;
|
||||
|
||||
|
|
Loading…
Reference in a new issue