reload-popup: add inhibitReloadPopup() calls
This commit is contained in:
parent
69d5b7b480
commit
5734457706
2 changed files with 3 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
|||
# Reload Popup
|
||||
|
||||
A popup in the corner of the screen that appears when hot reloading the configuration,
|
||||
which you can easily add to an existing shell.
|
||||
Replaces the standard quickshell config reload popup.
|
||||
|
||||
You can try it out by running `quickshell -p shell.qml` which will put a simple bar
|
||||
on the screen. The popup will appear if the file is edited, and display the error
|
||||
|
|
|
@ -12,11 +12,13 @@ Scope {
|
|||
target: Quickshell
|
||||
|
||||
function onReloadCompleted() {
|
||||
Quickshell.inhibitReloadPopup();
|
||||
root.failed = false;
|
||||
popupLoader.loading = true;
|
||||
}
|
||||
|
||||
function onReloadFailed(error: string) {
|
||||
Quickshell.inhibitReloadPopup();
|
||||
// Close any existing popup before making a new one.
|
||||
popupLoader.active = false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue