Skip to content

Commit

Permalink
Add ipps support
Browse files Browse the repository at this point in the history
  • Loading branch information
attah committed Jun 20, 2021
1 parent cb6f836 commit 01e7e02
Show file tree
Hide file tree
Showing 15 changed files with 313 additions and 90 deletions.
7 changes: 5 additions & 2 deletions qml/harbour-seaprint.qml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import Nemo.Notifications 1.0
import Nemo.Configuration 1.0
import seaprint.mimer 1.0
import seaprint.settings 1.0

import "pages"
import "components"

Expand Down Expand Up @@ -151,9 +152,11 @@ ApplicationWindow
defaultValue: SeaPrintSettings.alwaysUseMediaColDefault
}

Component.onCompleted:
ConfigurationValue
{
console.log(SeaPrintSettings.ignoreSslErrorsPath, SeaPrintSettings.ignoreSslErrorsDefault)
id: ignoreSslErrorsSetting
key: SeaPrintSettings.ignoreSslErrorsPath
defaultValue: SeaPrintSettings.ignoreSslErrorsDefault
}

}
Expand Down
1 change: 0 additions & 1 deletion qml/pages/FirstPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Page {
else {
IppDiscovery.favourites = []
}

}

property bool initialSSIDchange: true
Expand Down
9 changes: 9 additions & 0 deletions qml/pages/SettingsPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@ Page {
}
}

TextSwitch {
text: qsTr("Ignore SSL errors")
description: qsTr("In order to work with self-signed certificates of printers and CUPS instances, SSL errors needs to be ignored.")
checked: ignoreSslErrorsSetting.value
onCheckedChanged: {
ignoreSslErrorsSetting.value = checked
}
}

}
}
}
Loading

0 comments on commit 01e7e02

Please sign in to comment.