QoL Fixes and Changes
This commit is contained in:
parent
b8201398e1
commit
93995959d0
1 changed files with 905 additions and 229 deletions
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
#include <fstream>
|
||||
#include <sstream>
|
||||
#include <filesystem>
|
||||
|
||||
ConfigInterface::ConfigInterface(QObject *parent)
|
||||
: QObject{parent}
|
||||
|
|
@ -37,6 +38,12 @@ void ConfigInterface::setFileName(const QString &newFileName)
|
|||
emit fileNameChanged();
|
||||
}
|
||||
|
||||
void ConfigInterface::deleteConfig()
|
||||
{
|
||||
std::filesystem::remove(std::filesystem::path(m_fileName.toStdString()));
|
||||
emit configDeleted();
|
||||
}
|
||||
|
||||
void ConfigInterface::saveConfig(QJsonObject config)
|
||||
{
|
||||
QJsonDocument doc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue