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:
Lars Toenning
2024-03-24 15:25:52 +01:00
parent 353f877753
commit b2ecee8a94

View File

@@ -172,7 +172,7 @@ namespace BlackSimPlugin::FsxCommon
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));
this->checkSwiftSimConnectCfgFile();