mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 01:33:19 +00:00
Add Android Manifest
This commit is contained in:
parent
3bbcf60c61
commit
8d24efd4f1
11 changed files with 509 additions and 5 deletions
|
@ -30,7 +30,6 @@ Backend::Backend() : todoView(&mirai)
|
|||
std::cout << "Backend created" << std::endl;
|
||||
|
||||
cpputils::debug::Timer readConfigDuration;
|
||||
QDir().mkpath(getConfigFilePath());
|
||||
QFile loadFile(getConfigFilePath());
|
||||
readConfigDuration.printTimeElapsed("Read config duration");
|
||||
|
||||
|
@ -342,9 +341,10 @@ void Backend::saveConfig()
|
|||
}
|
||||
rootJson["tags"] = tagsJson;
|
||||
|
||||
QDir().mkpath(QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation));
|
||||
QFile configFile(getConfigFilePath());
|
||||
if (!configFile.open(QIODevice::WriteOnly)) {
|
||||
qWarning() << "Cannot save config";
|
||||
if (!configFile.open(QIODevice::WriteOnly | QIODevice::Truncate)) {
|
||||
qWarning() << "Cannot save config: " << getConfigFilePath();
|
||||
return;
|
||||
}
|
||||
configFile.write(QJsonDocument(rootJson).toJson());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue