Skip to content

Commit

Permalink
don't skip important/mandatory updates
Browse files Browse the repository at this point in the history
  • Loading branch information
moonshadow565 committed Aug 27, 2022
1 parent 826bb27 commit 7cd91b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/qml/CSLOLDialogUpdate.qml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ Dialog {
}

function checkForUpdates() {
if (disableUpdates) {
return;
}
let url = "https://api.github.com/repos/LoL-Fantome/cslol-manager";
makeRequest(url + "/releases/latest", function(latest) {
if (disableUpdates && !(latest["body"].includes("mandatory") || latest["body"].includes("important"))) {
return;
}
let tag_name = latest["tag_name"];
makeRequest(url + "/git/ref/tags/" + tag_name, function(ref) {
let commit_sha = ref["object"]["sha"];
Expand Down
3 changes: 1 addition & 2 deletions src/qml/CSLOLModsView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ ColumnLayout {
RowLayout {
spacing: cslolModsScrollView.spacing
Layout.fillWidth: true
Layout.margins: cslolModsScrollView.padding
Layout.margins: cslolModsScrollView.padding * 2

CheckBox {
id: enableAllCheckbox
Expand All @@ -434,7 +434,6 @@ ColumnLayout {
nextCheckState: function() {
return checkState === Qt.Checked ? Qt.Unchecked : Qt.Checked
}
Layout.leftMargin: 10
ToolTip {
text: qsTr("Enable all mods")
visible: parent.hovered
Expand Down

0 comments on commit 7cd91b3

Please sign in to comment.