mirror of
https://github.com/quickshell-mirror/quickshell.git
synced 2026-11-05 03:46:32 +00:00
refactor: move settings to their own object
This commit is contained in:
8 files changed
+107
-78
No files matched your search
+3
-12
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user