Skip to content

Commit

Permalink
Fix offline GUI issues
Browse files Browse the repository at this point in the history
This fixes problems (1) and (3) from #3210
  • Loading branch information
wonder-sk committed Apr 8, 2024
1 parent e1b0668 commit 174b375
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
20 changes: 12 additions & 8 deletions app/qml/project/MMProjectHomeTab.qml
Original file line number Diff line number Diff line change
Expand Up @@ -237,17 +237,21 @@ Item {
root.showLocalChangesRequested( projectId )
}

function updateListHeader() {
// ugly ugly ugly #2
projectlist.listHeader = null

if ( root.activeProjectId ) {
projectlist.listHeader = activeProjectComponent
}
}

onActiveProjectIdChanged: projectlist.updateListHeader()

Connections {
target: projectlist.projectsModel

function onModelReset() {
// ugly ugly ugly #2
projectlist.listHeader = null

if ( root.activeProjectId ) {
projectlist.listHeader = activeProjectComponent
}
}
function onModelReset() { projectlist.updateListHeader() }
}
}

Expand Down
3 changes: 1 addition & 2 deletions app/qml/project/MMProjectList.qml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ Item {
width: parent.width
height: __style.row63
visible: false
y: root.height/3 * 2
y: noMerginProjectsTexts.y + noMerginProjectsTexts.height

Connections {
target: __merginApi
Expand All @@ -267,7 +267,6 @@ Item {
id: reloadBtn

width: reloadList.width - 2* __style.pageMargins
height: reloadList.height
text: qsTr("Retry")

anchors.horizontalCenter: parent.horizontalCenter
Expand Down

0 comments on commit 174b375

Please sign in to comment.