forked from quickshell/quickshell
refactor: move settings to their own object
This commit is contained in:
parent
62f99f5754
commit
4ef4cba4ee
8 changed files with 107 additions and 78 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue