mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
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>
This commit is contained in:
parent
bc034d5553
commit
55e08a3a2f
1 changed files with 4 additions and 1 deletions
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue