Skip to content

Commit

Permalink
Move patching checks to use strictCompatability instead of developerMode
Browse files Browse the repository at this point in the history
Contributes-To: sailfishos-patches#333
  • Loading branch information
nephros committed Jan 6, 2023
1 parent e712296 commit d2d8387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/qml/PatchManagerPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ Page {
function doPatch() {
view.model.saveLayout()
if (!patchObject.details.patched) {
if (PatchManager.developerMode || patchObject.details.isCompatible) {
if (!PatchManager.strictCompatability || patchObject.details.isCompatible) {
patchObject.apply()
} else {
errorMessageComponent.createObject(background, {text: qsTranslate("", "This Patch is incompatible with the installed SailfishOS version.")})
Expand Down
2 changes: 1 addition & 1 deletion src/qml/WebPatchPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ Page {
property bool isReinstallable: isInstalled && isCompatible

onClicked: {
if (!PatchManager.developerMode && !isCompatible) {
if (PatchManager.strictCompatability && !isCompatible) {
errorMessageComponent.createObject(fileDelegate, {text: qsTranslate("", "This Patch is incompatible with the installed SailfishOS version.")})
} else if (!fileDelegate.isInstalled) {
remorseAction(qsTranslate("", "Install Patch %1").arg(patchData.display_name), installPatch)
Expand Down

0 comments on commit d2d8387

Please sign in to comment.