Commit 4fcca88e authored by Camilo Higuita's avatar Camilo Higuita

fixing missing stuff

parent b15a2140
......@@ -365,7 +365,7 @@ void Babe::scanDir(const QString &url)
void Babe::brainz(const bool &on)
{
// this->settings->checkCollectionBrainz(on);
this->settings->checkCollectionBrainz(on);
}
bool Babe::brainzState()
......
......@@ -6,6 +6,7 @@ WebView
{
id: webView
clip: true
onLoadingChanged:
{
if (loadRequest.errorString)
......
......@@ -103,6 +103,7 @@ Page
Loader
{
id: webViewer
clip: true
Layout.fillHeight: true
Layout.fillWidth: true
source: isMobile ? "qrc:/services/web/WebView_A.qml" : "qrc:/services/web/WebView.qml"
......
......@@ -10,7 +10,7 @@ Kirigami.GlobalDrawer
id: settingsView
handleVisible: false
signal iconSizeChanged(int size)
readonly property bool activeBrainz : false
readonly property bool activeBrainz : bae.brainzState()
visible: false
y: header.height
......@@ -127,7 +127,23 @@ Kirigami.GlobalDrawer
{
text: qsTr("Settings...")
iconName: "view-media-config"
Kirigami.Action
{
text: "Brainz"
Kirigami.Action
{
id: brainzToggle
text: checked ? "Turn OFF" : "Turn ON"
checked: activeBrainz
checkable: true
onToggled:
{
bae.saveSetting("BRAINZ", checked === true ? true : false, "BABE")
bae.brainz(checked === true ? true : false)
}
}
}
Kirigami.Action
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment