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