Skip to content

Commit

Permalink
fixed: up/down arrow button cycling in PackageManager menus
Browse files Browse the repository at this point in the history
  • Loading branch information
kwindrem committed Jan 15, 2023
1 parent 11d9f2b commit 1bd2313
Show file tree
Hide file tree
Showing 10 changed files with 124 additions and 138 deletions.
8 changes: 1 addition & 7 deletions FileSets/PageSettingsPackageAdd.qml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@ MbPage {
property string packageName: packageNameBox.item.valid ? packageNameBox.item.value : ""
property string editAction: editActionItem.valid ? editActionItem.value : ''

property bool showControls: editActionItem.valid

property VBusItem defaultPackageName: VBusItem { bind: Utils.path ( servicePrefix, "/Default/", defaultIndex, "/", "PackageName" ) }
property VBusItem defaultGitHubUser: VBusItem { bind: Utils.path ( servicePrefix, "/Default/", defaultIndex, "/", "GitHubUser" ) }
property VBusItem defaultGitHubBranch: VBusItem { bind: Utils.path ( servicePrefix, "/Default/", defaultIndex, "/", "GitHubBranch" ) }
Expand Down Expand Up @@ -89,7 +87,6 @@ MbPage {
item.bind: getSettingsBind ("PackageName")
overwriteMode: false
writeAccessLevel: User.AccessInstaller
visible: showControls
}
MbEditBox
{
Expand All @@ -99,7 +96,6 @@ MbPage {
item.bind: getSettingsBind ("GitHubUser")
overwriteMode: false
writeAccessLevel: User.AccessInstaller
visible: showControls
}
MbEditBox
{
Expand All @@ -109,7 +105,6 @@ MbPage {
item.bind: getSettingsBind ("GitHubBranch")
overwriteMode: false
writeAccessLevel: User.AccessInstaller
visible: showControls
}
MbOK
{
Expand All @@ -119,7 +114,6 @@ MbPage {
description: ""
value: editAction == '' ? qsTr("Cancel") : qsTr("OK")
onClicked: cancelEdit ()
visible: showControls
}
MbOK
{
Expand All @@ -129,7 +123,7 @@ MbPage {
description: ""
value: qsTr ("Proceed")
onClicked: confirm ()
visible: showControls && editAction == ''
show: editAction == ''
writeAccessLevel: User.AccessInstaller
}
Text
Expand Down
Loading

0 comments on commit 1bd2313

Please sign in to comment.