mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-23 15:50:05 +02:00
Use BasicUI in FileNames.cpp, to remove some dependency on wxCore
This commit is contained in:
parent
e3e6d56846
commit
ddf5643d01
@ -32,6 +32,7 @@ used throughout Audacity into this one place.
|
||||
#include <wx/filename.h>
|
||||
#include <wx/intl.h>
|
||||
#include <wx/stdpaths.h>
|
||||
#include "BasicUI.h"
|
||||
#include "Prefs.h"
|
||||
#include "Internat.h"
|
||||
#include "PlatformCompatibility.h"
|
||||
@ -722,11 +723,14 @@ bool FileNames::WritableLocationCheck(const FilePath& path)
|
||||
|
||||
if (!status)
|
||||
{
|
||||
AudacityMessageBox(
|
||||
XO("Directory %s does not have write permissions")
|
||||
.Format(path),
|
||||
XO("Error"),
|
||||
wxOK | wxICON_ERROR);
|
||||
using namespace BasicUI;
|
||||
ShowMessageBox(
|
||||
XO("Directory %s does not have write permissions").Format(path),
|
||||
MessageBoxOptions{}
|
||||
.Caption(XO("Error"))
|
||||
.IconStyle(Icon::Error)
|
||||
.ButtonStyle(Button::Ok)
|
||||
);
|
||||
}
|
||||
|
||||
return status;
|
||||
|
Loading…
x
Reference in New Issue
Block a user