Stop desktop save from closing window

Stop 'save to desktop' button closing the
shortcut window (and the profile window too!)
This commit is contained in:
Terry MacDonald 2021-03-17 20:25:34 +13:00
parent 795f006e2d
commit f9de793998
2 changed files with 4 additions and 4 deletions

View File

@ -112,7 +112,7 @@ namespace DisplayMagician.UIForms
private void Save_Click(object sender, EventArgs e) private void Save_Click(object sender, EventArgs e)
{ {
DialogResult = DialogResult.None; //DialogResult = DialogResult.None;
// Only do something if there is a shortcut selected // Only do something if there is a shortcut selected
if (_selectedProfile != null) if (_selectedProfile != null)
@ -155,7 +155,7 @@ namespace DisplayMagician.UIForms
} }
dialog_save.FileName = string.Empty; dialog_save.FileName = string.Empty;
DialogResult = DialogResult.OK; //DialogResult = DialogResult.OK;
} }
} }
catch (Exception ex) catch (Exception ex)

View File

@ -102,7 +102,7 @@ namespace DisplayMagician.UIForms
private void btn_save_Click(object sender, EventArgs e) private void btn_save_Click(object sender, EventArgs e)
{ {
DialogResult = DialogResult.None; //DialogResult = DialogResult.None;
// Only do something if there is a shortcut selected // Only do something if there is a shortcut selected
if (_selectedShortcut != null) if (_selectedShortcut != null)
@ -160,7 +160,7 @@ namespace DisplayMagician.UIForms
} }
dialog_save.FileName = string.Empty; dialog_save.FileName = string.Empty;
DialogResult = DialogResult.OK; //DialogResult = DialogResult.OK;
} }
} }
catch (Exception ex) catch (Exception ex)