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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user