QoL Fixes and Changes

This commit is contained in:
unrealdragon 2026-09-23 17:36:00 +05:30
commit 93995959d0

View file

@ -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;