Merge pull request #10898 from cbjeukendrup/fix_10848
Fix #10848: Onboarding process no longer starts in the main 'Score' tab. Rewording of Tutorial description needed. App should start maximised.
This commit is contained in:
commit
4e8b1e9fa4
7 changed files with 19 additions and 23 deletions
|
@ -29,7 +29,7 @@ import MuseScore.AppShell 1.0
|
|||
|
||||
Page {
|
||||
title: qsTrc("appshell", "Video tutorials")
|
||||
explanation: qsTrc("appshell", "This is the ‘Learn’ section, where you’ll find tutorials to get you started\n(Video tutorials require an internet connection)")
|
||||
explanation: qsTrc("appshell", "Behind this dialog is the ‘Learn’ section, where you’ll find tutorials to get you started\n(Video tutorials require an internet connection)")
|
||||
|
||||
titleContentSpacing: 12
|
||||
|
||||
|
|
|
@ -51,9 +51,5 @@ AppWindow {
|
|||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
|
||||
onWindowLoaded: {
|
||||
root.visible = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -141,9 +141,5 @@ AppWindow {
|
|||
id: window
|
||||
|
||||
anchors.fill: parent
|
||||
|
||||
onWindowLoaded: {
|
||||
root.visible = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,9 +83,5 @@ AppWindow {
|
|||
anchors.left: parent.left
|
||||
anchors.right: parent.right
|
||||
anchors.bottom: parent.bottom
|
||||
|
||||
onWindowLoaded: {
|
||||
root.visible = true
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -213,15 +213,17 @@ void DockWindow::loadPage(const QString& uri, const QVariantMap& params)
|
|||
return;
|
||||
}
|
||||
|
||||
//! NOTE: show window as maximized if the user closed app in FullScreen mode
|
||||
if (isFirstOpening && (m_mainWindow->windowHandle()->windowStates() & QWindow::FullScreen)) {
|
||||
m_mainWindow->showMaximized();
|
||||
}
|
||||
|
||||
emit currentPageUriChanged(uri);
|
||||
|
||||
if (isFirstOpening) {
|
||||
emit windowLoaded();
|
||||
if (!m_hasGeometryBeenRestored
|
||||
|| (m_mainWindow->windowHandle()->windowStates() & QWindow::FullScreen)) {
|
||||
//! NOTE: show window as maximized if no geometry has been restored
|
||||
//! or if the user had closed app in FullScreen mode
|
||||
m_mainWindow->windowHandle()->showMaximized();
|
||||
} else {
|
||||
m_mainWindow->windowHandle()->setVisible(true);
|
||||
}
|
||||
}
|
||||
|
||||
emit pageLoaded();
|
||||
|
@ -509,7 +511,13 @@ void DockWindow::restoreGeometry()
|
|||
{
|
||||
TRACEFUNC;
|
||||
|
||||
if (!restoreLayout(uiConfiguration()->windowGeometry())) {
|
||||
if (uiConfiguration()->windowGeometry().isEmpty()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (restoreLayout(uiConfiguration()->windowGeometry())) {
|
||||
m_hasGeometryBeenRestored = true;
|
||||
} else {
|
||||
LOGE() << "Could not restore the window geometry!";
|
||||
}
|
||||
}
|
||||
|
|
|
@ -90,7 +90,6 @@ public:
|
|||
void restoreDefaultLayout() override;
|
||||
|
||||
signals:
|
||||
void windowLoaded();
|
||||
void pageLoaded();
|
||||
void currentPageUriChanged(const QString& uri);
|
||||
|
||||
|
@ -137,6 +136,7 @@ private:
|
|||
uicomponents::QmlListProperty<DockPageView> m_pages;
|
||||
async::Channel<QStringList> m_docksOpenStatusChanged;
|
||||
|
||||
bool m_hasGeometryBeenRestored = false;
|
||||
bool m_quiting = false;
|
||||
bool m_workspaceChanging = false;
|
||||
};
|
||||
|
|
|
@ -31,8 +31,8 @@ FirstLaunchSetupModel::FirstLaunchSetupModel(QObject* parent)
|
|||
: QObject(parent)
|
||||
{
|
||||
m_pages = {
|
||||
Page { "ThemesPage.qml", "musescore://home" },
|
||||
Page { "PlaybackPage.qml", "musescore://home" },
|
||||
Page { "ThemesPage.qml", "musescore://notation" },
|
||||
Page { "PlaybackPage.qml", "musescore://notation" },
|
||||
Page { "TutorialsPage.qml", "musescore://home?section=learn" }
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue