core: add per-config shell id

Will be useful for future functionality such as IPC and caching.
This commit is contained in:
outfoxxed 2024-08-02 02:09:55 -07:00
parent 79b2fea52e
commit d582bb7b57
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 22 additions and 9 deletions

View file

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