forked from quickshell/quickshell
core/reloader: trigger onPostReload if launched post-reload
This is similar to the check in Reloadable, and fixes a number of hard to debug issues with Process, IpcHandler, NotificationServer, and GlobalShortcut not working depending on where you put them in a QML file.
This commit is contained in:
parent
0e6518a706
commit
9708d8212a
8 changed files with 36 additions and 38 deletions
|
@ -31,9 +31,7 @@
|
|||
/// }
|
||||
/// }
|
||||
/// ```
|
||||
class Process
|
||||
: public QObject
|
||||
, public PostReloadHook {
|
||||
class Process: public PostReloadHook {
|
||||
Q_OBJECT;
|
||||
// clang-format off
|
||||
/// If the process is currently running. Defaults to false.
|
||||
|
@ -258,5 +256,4 @@ private:
|
|||
bool targetRunning = false;
|
||||
bool mStdinEnabled = false;
|
||||
bool mClearEnvironment = false;
|
||||
bool postReload = false;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue