Skip to content

Commit 5734457

Browse files
committed
reload-popup: add inhibitReloadPopup() calls
1 parent 69d5b7b commit 5734457

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

reload-popup/README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Reload Popup
22

3-
A popup in the corner of the screen that appears when hot reloading the configuration,
4-
which you can easily add to an existing shell.
3+
Replaces the standard quickshell config reload popup.
54

65
You can try it out by running `quickshell -p shell.qml` which will put a simple bar
76
on the screen. The popup will appear if the file is edited, and display the error

reload-popup/ReloadPopup.qml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,13 @@ Scope {
1212
target: Quickshell
1313

1414
function onReloadCompleted() {
15+
Quickshell.inhibitReloadPopup();
1516
root.failed = false;
1617
popupLoader.loading = true;
1718
}
1819

1920
function onReloadFailed(error: string) {
21+
Quickshell.inhibitReloadPopup();
2022
// Close any existing popup before making a new one.
2123
popupLoader.active = false;
2224

0 commit comments

Comments
 (0)