Commit c913c10f authored by camilo higuita's avatar camilo higuita

fixes and save custom props

parent 1480b72d
......@@ -17,7 +17,8 @@ Maui.ApplicationWindow
Maui.App.iconName: "qrc:/assets/index.svg"
property bool terminalVisible : true
property bool terminalVisible : Maui.FM.loadSettings("TERMINAL", "EXTENSIONS", false) == "true"
property alias terminal : terminalLoader.item
property alias dialog : dialogLoader.item
property bool searchBar: false
......@@ -68,7 +69,7 @@ Maui.ApplicationWindow
background: Rectangle
{
border.color: Qt.tint(Kirigami.Theme.textColor, Qt.rgba(Kirigami.Theme.backgroundColor.r, Kirigami.Theme.backgroundColor.g, Kirigami.Theme.backgroundColor.b, 0.7))
radius: radiusV
radius: Maui.Style.radiusV
color: Kirigami.Theme.backgroundColor
}
}
......@@ -79,8 +80,8 @@ Maui.ApplicationWindow
{
id: _pathBarLoader
Layout.fillWidth: true
Layout.margins: space.medium
Layout.preferredHeight: iconSizes.big
Layout.margins: Maui.Style.space.medium
Layout.preferredHeight: Maui.Style.iconSizes.big
sourceComponent: searchBar ? _searchFieldComponent : _pathBarComponent
}
......
......@@ -7,28 +7,15 @@ import org.kde.mauikit 1.0 as Maui
Maui.FileBrowser
{
id: control
headBar.visible: true
menu: [
MenuItem
{
visible: !isMobile
text: qsTr("Show terminal")
checkable: true
checked: terminalVisible
onTriggered:
{
terminalVisible = !terminalVisible
Maui.FM.setDirConf(control.currentPath+"/.directory", "MAUIFM", "ShowTerminal", terminalVisible)
}
}
]
headBar.rightContent: ToolButton
{
visible: terminal
icon.name: "utilities-terminal"
onClicked: terminalVisible = !terminalVisible
onClicked:
{
terminalVisible = !terminalVisible
Maui.FM.saveSettings("TERMINAL", terminalVisible, "EXTENSIONS")
}
checked : terminalVisible
checkable: false
}
......@@ -41,7 +28,7 @@ Maui.FileBrowser
onCurrentPathChanged:
{
if(terminalVisible && !isMobile)
if(terminalVisible && !Kirigami.Settings.isMobile)
terminal.session.sendText("cd '" + String(currentPath).replace("file://", "") + "'\n")
for(var i = 0; i < placesSidebar.count; i++)
......
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