forked from quickshell/quickshell
singleton: add reloadable Singleton type
This commit is contained in:
parent
463f9a297f
commit
211f454de9
6 changed files with 108 additions and 5 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue