Skip to content

Commit

Permalink
working version
Browse files Browse the repository at this point in the history
  • Loading branch information
VitorVieiraZ committed Jun 6, 2024
1 parent 02250c3 commit 0274229
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions app/qml/project/MMProjectController.qml
Original file line number Diff line number Diff line change
Expand Up @@ -370,16 +370,14 @@ Item {
}

model: ObjectModel {
id: pageModel

MMToolbarButton {
id: localProjectsBtn
text: qsTr("Home")
iconSource: __style.homeIcon
iconSourceSelected: __style.homeFilledIcon
onClicked: {
homeTab.searchBarInput = false
projectsPage.state = "home"
}
onClicked: pageModel.switchPage( homeTab, "home" )
}

MMToolbarButton {
Expand All @@ -388,10 +386,7 @@ Item {
text: qsTr("Projects")
iconSource: __style.projectsIcon
iconSourceSelected: __style.projectsFilledIcon
onClicked: {
workspaceProjectsTab.searchBarInput = false
projectsPage.state = "workspace"
}
onClicked: pageModel.switchPage( workspaceProjectsTab, "workspace" )
}

MMToolbarButton {
Expand All @@ -400,10 +395,12 @@ Item {
text: qsTr("Explore")
iconSource: __style.globalIcon
iconSourceSelected: __style.globalFilledIcon
onClicked: {
publicProjectsTab.searchBarInput = false
projectsPage.state = "explore"
}
onClicked: pageModel.switchPage( publicProjectsTab, "explore" )
}

function switchPage( tab, state ) {
tab.searchBarInput.focus = false
projectsPage.state = state
}
}
}
Expand Down

1 comment on commit 0274229

@inputapp-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS - version 24.6.630511 just submitted!

Please sign in to comment.