1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-06 17:13:49 +01:00

Use WarningDialog for drop-outs, and change the wording

This commit is contained in:
Paul Licameli
2018-01-16 11:52:17 -05:00
parent e88615c1b6
commit 130e55cdf5
5 changed files with 26 additions and 9 deletions

View File

@@ -86,7 +86,7 @@ int ShowWarningDialog(wxWindow *parent,
const wxString &message,
bool showCancelButton)
{
wxString key(wxT("/Warnings/") + internalDialogName);
auto key = WarningDialogKey(internalDialogName);
if (!gPrefs->Read(key, (long) true)) {
return wxID_OK;
}
@@ -101,3 +101,8 @@ int ShowWarningDialog(wxWindow *parent,
gPrefs->Flush();
return wxID_OK;
}
wxString WarningDialogKey(const wxString &internalDialogName)
{
return wxT("/Warnings/") + internalDialogName;
}