[Pkg-mozext-commits] [requestpolicy] 209/280: show setup when installed restartless, fixes #596
David Prévot
taffit at moszumanska.debian.org
Sat May 2 20:30:28 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository requestpolicy.
commit 7d1e7124793fcd3ccfd7df10148c03a97e546b1c
Author: Martin Kimmerle <dev at 256k.de>
Date: Wed Feb 4 22:12:59 2015 +0100
show setup when installed restartless, fixes #596
---
src/content/main/requestpolicy-service.jsm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/content/main/requestpolicy-service.jsm b/src/content/main/requestpolicy-service.jsm
index 12b80eb..25e683e 100644
--- a/src/content/main/requestpolicy-service.jsm
+++ b/src/content/main/requestpolicy-service.jsm
@@ -145,6 +145,15 @@ let rpService = (function() {
ProcessEnvironment.addStartupFunction(Environment.LEVELS.INTERFACE,
registerObservers);
+ ProcessEnvironment.addStartupFunction(
+ Environment.LEVELS.UI,
+ function(data, reason) {
+ if (reason !== C.APP_STARTUP) {
+ // In case of the app's startup `showWelcomeWindow()` will be
+ // called when "sessionstore-windows-restored" is observed.
+ showWelcomeWindow();
+ }
+ });
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/requestpolicy.git
More information about the Pkg-mozext-commits
mailing list