call Application.ShowSettingsDialog to minimize code reuse

This commit is contained in:
Michael Becker 2020-09-25 17:39:05 -04:00
parent c826046e50
commit 4cb7b90ce3
No known key found for this signature in database
GPG Key ID: 506F54899E2BFED7

View File

@ -1325,12 +1325,7 @@ namespace UniversalEditor.UserInterface
public bool ShowOptionsDialog()
{
SettingsDialog dlg = new SettingsDialog();
if (dlg.ShowDialog() == DialogResult.OK)
{
return true;
}
return false;
return Application.ShowSettingsDialog();
}
public void ToggleMenuItemEnabled(string menuItemName, bool enabled)