forked from quickshell/quickshell
core: add per-config shell id
Will be useful for future functionality such as IPC and caching.
This commit is contained in:
parent
79b2fea52e
commit
d582bb7b57
3 changed files with 22 additions and 9 deletions
|
@ -16,10 +16,11 @@
|
|||
#include "scan.hpp"
|
||||
#include "shell.hpp"
|
||||
|
||||
RootWrapper::RootWrapper(QString rootPath)
|
||||
: QObject(nullptr)
|
||||
, rootPath(std::move(rootPath))
|
||||
, originalWorkingDirectory(QDir::current().absolutePath()) {
|
||||
RootWrapper::RootWrapper(QString rootPath, QString shellId)
|
||||
: QObject(nullptr)
|
||||
, rootPath(std::move(rootPath))
|
||||
, shellId(std::move(shellId))
|
||||
, originalWorkingDirectory(QDir::current().absolutePath()) {
|
||||
// clang-format off
|
||||
QObject::connect(QuickshellSettings::instance(), &QuickshellSettings::watchFilesChanged, this, &RootWrapper::onWatchFilesChanged);
|
||||
// clang-format on
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue