[geary/wip/775956-dbus-activation] Don't auto-show the main window when started as a service
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/775956-dbus-activation] Don't auto-show the main window when started as a service
- Date: Tue, 9 Apr 2019 15:26:23 +0000 (UTC)
commit 719568a092a4699c7cc2d86fd5cad54a20f24525
Author: Michael Gratton <mike vee net>
Date: Wed Apr 10 00:50:16 2019 +1000
Don't auto-show the main window when started as a service
src/client/application/geary-controller.vala | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/client/application/geary-controller.vala b/src/client/application/geary-controller.vala
index 93eb48f8..06bc4e4a 100644
--- a/src/client/application/geary-controller.vala
+++ b/src/client/application/geary-controller.vala
@@ -1059,7 +1059,8 @@ public class GearyController : Geary.BaseObject {
private void display_main_window_if_ready() {
if (did_attempt_open_all_accounts() &&
!upgrade_dialog.visible &&
- !cancellable_open_account.is_cancelled())
+ !cancellable_open_account.is_cancelled() &&
+ !this.application.is_background_service)
main_window.show();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]