X-Git-Url: http://git.tdb.fi/?p=xinema.git;a=blobdiff_plain;f=remote%2Fqml%2Fpages%2FBrowsePage.qml;h=a4e1ac2ec452a68af3c633f6a6624f558d67b05c;hp=d1b74e606b7f1b34983c78be4532b27692adeece;hb=260fa1b83be3f3094ba912ed67e5447d196dd632;hpb=57fa1e2b4cba16ab023aba0b5ec4a5ee9c1307f8 diff --git a/remote/qml/pages/BrowsePage.qml b/remote/qml/pages/BrowsePage.qml index d1b74e6..a4e1ac2 100644 --- a/remote/qml/pages/BrowsePage.qml +++ b/remote/qml/pages/BrowsePage.qml @@ -1,5 +1,6 @@ import QtQuick 2.0 import Sailfish.Silica 1.0 +import org.nemomobile.configuration 1.0 import fi.mikkosoft.xinema 0.1 Page @@ -35,6 +36,8 @@ Page MenuItem { text: "Set as default location" + + onClicked: defaultLocation.value = browseDirectory.directory } MenuItem @@ -92,7 +95,7 @@ Page Component.onCompleted: { if(xinemaControl.connected) - browseDirectory.directory = "/"; + browseDirectory.directory = defaultLocation.value; } StreamControl @@ -109,5 +112,12 @@ Page } } } + + ConfigurationValue + { + id: defaultLocation + key: "/fi/mikkosoft/xinema-remote/defaultLocation" + defaultValue: "/" + } }