singleton: add reloadable Singleton type

This commit is contained in:
outfoxxed 2024-03-13 00:57:03 -07:00
parent 463f9a297f
commit 211f454de9
Signed by: outfoxxed
GPG key ID: 4C88A185FB89301E
6 changed files with 108 additions and 5 deletions

View file

@ -16,6 +16,7 @@
#include "qmlglobal.hpp"
#include "reload.hpp"
#include "shell.hpp"
#include "singleton.hpp"
#include "watcher.hpp"
RootWrapper::RootWrapper(QString rootPath)
@ -49,6 +50,7 @@ void RootWrapper::reloadGraph(bool hard) {
if (this->root != nullptr) {
QuickshellSettings::reset();
SingletonRegistry::instance()->flip();
}
QDir::setCurrent(this->originalWorkingDirectory);