[gnome-shell/wip/aday/app-grid-layout] welcomeDialog: Hide overview when taking tour
- From: Allan Day <allanday src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/aday/app-grid-layout] welcomeDialog: Hide overview when taking tour
- Date: Mon, 22 Feb 2021 10:20:28 +0000 (UTC)
commit b4a732a7e324fe2a5a2171ff99d4ffd7127fda2c
Author: Florian Müllner <fmuellner gnome org>
Date: Fri Feb 19 17:11:14 2021 +0100
welcomeDialog: Hide overview when taking tour
The dialog is shown at session start, which right now means in the
regular session, however the plan is to start the session in the
overview. When that happens, the "Take the Tour" button should get
the user to the Tour without additonal actions.
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1699>
js/ui/welcomeDialog.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/welcomeDialog.js b/js/ui/welcomeDialog.js
index 0b6dc49399..cf6540fe23 100644
--- a/js/ui/welcomeDialog.js
+++ b/js/ui/welcomeDialog.js
@@ -5,6 +5,7 @@ const { Clutter, GObject, Shell, St } = imports.gi;
const Config = imports.misc.config;
const Dialog = imports.ui.dialog;
+const Main = imports.ui.main;
const ModalDialog = imports.ui.modalDialog;
var DialogResponse = {
@@ -51,8 +52,10 @@ class WelcomeDialog extends ModalDialog.ModalDialog {
}
_sendResponse(response) {
- if (response === DialogResponse.TAKE_TOUR)
+ if (response === DialogResponse.TAKE_TOUR) {
this._tourAppInfo.launch(0, -1, Shell.AppLaunchGpu.APP_PREF);
+ Main.overview.hide();
+ }
this.close();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]