refactor: move settings to their own object

This commit is contained in:
outfoxxed committed 2024-03-04 01:36:00 -08:00
1 parent 62f99f5754
commit 4ef4cba4ee
8 files changed
+107 -78

No files matched your search

+3 -12
View File
@@ -1,16 +1,7 @@
#include "shell.hpp"
#include <qdir.h>
#include <qtmetamacros.h>
#include "qmlglobal.hpp"
void ShellRoot::setConfig(ShellConfig config) {
this->mConfig = config;
emit this->configChanged();
}
ShellConfig ShellRoot::config() const { return this->mConfig; }
void ShellConfig::setWorkingDirectory(const QString& workingDirectory) { // NOLINT
QDir::setCurrent(workingDirectory);
QuickshellSettings* ShellRoot::settings() const { // NOLINT
return QuickshellSettings::instance();
}