Skip to content

Commit

Permalink
disable some buttons while running
Browse files Browse the repository at this point in the history
  • Loading branch information
moonshadow565 committed Aug 27, 2022
1 parent 9563a9d commit 3f39b52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/qml/CSLOLModsView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -424,13 +424,13 @@ ColumnLayout {
}

RowLayout {
enabled: !isBussy || window.patcherRunning
spacing: cslolModsScrollView.spacing
Layout.fillWidth: true
Layout.margins: cslolModsScrollView.padding

TextField {
id: cslolModsViewSearchBox
enabled: !isBussy || window.patcherRunning
Layout.fillWidth: true
placeholderText: "Search..."
onTextEdited: {
Expand All @@ -439,6 +439,7 @@ ColumnLayout {
}
}
RoundButton {
enabled: !isBussy
text: "\uf021"
font.family: "FontAwesome"
onClicked: cslolModsView.tryRefresh()
Expand All @@ -449,6 +450,7 @@ ColumnLayout {
}
}
RoundButton {
enabled: !isBussy
text: "\uf067"
font.family: "FontAwesome"
onClicked: cslolModsView.createNewMod()
Expand All @@ -459,6 +461,7 @@ ColumnLayout {
}
}
RoundButton {
enabled: !isBussy
text: "\uf1c6"
font.family: "FontAwesome"
onClicked: cslolModsView.installFantomeZip()
Expand Down
1 change: 1 addition & 0 deletions src/qml/CSLOLToolBar.qml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ ToolBar {
}
CheckBox {
id: enableAllCheckbox
enabled: !isBussy
tristate: true
checkState: Qt.PartiallyChecked
nextCheckState: function() {
Expand Down

0 comments on commit 3f39b52

Please sign in to comment.