mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
refactor: Use CFileUtils to save the file
Other methods in this component to open and delete the file only worked in a local environment as well. For simplification allow writing this file locally only as well.
This commit is contained in:
@@ -172,7 +172,7 @@ namespace BlackSimPlugin::FsxCommon
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sGui->getIContextApplication()->writeToFile(fileName, CSimConnectUtilities::simConnectCfg(address, p)))
|
if (CFileUtils::writeStringToFile(CSimConnectUtilities::simConnectCfg(address, p), fileName))
|
||||||
{
|
{
|
||||||
QMessageBox::information(qApp->activeWindow(), tr("File saved"), tr("File '%1' saved.").arg(fileName));
|
QMessageBox::information(qApp->activeWindow(), tr("File saved"), tr("File '%1' saved.").arg(fileName));
|
||||||
this->checkSwiftSimConnectCfgFile();
|
this->checkSwiftSimConnectCfgFile();
|
||||||
|
|||||||
Reference in New Issue
Block a user