Commit 35f3f680 authored by Samoilenko Yuri's avatar Samoilenko Yuri

unmount state removed from palsmoid

parent ffba8bed
......@@ -39,13 +39,13 @@ QtObject {
property variant nested1: DBusAsyncResponse {
id: startupCheck1
autoDelete: false
onSuccess: charging = result
onSuccess: root.charging = result
}
property variant nested2: DBusAsyncResponse {
id: startupCheck2
autoDelete: false
onSuccess: charge = result
onSuccess: root.charge = result
}
onAvailableChanged: {
......
......@@ -54,11 +54,14 @@ PlasmaComponents.ListItem
},
State {
name: "MOUNTING"
PropertyChanges { target: browse; checked: true; text: i18n("Mounting...") }
// TODO make apropriate icons
//PropertyChanges { target: browse; checked: true; text: i18n("Mounting...") }
PropertyChanges { target: browse; checked: false; text: i18n("Browse") }
},
State {
name: "MOUNTED"
PropertyChanges { target: browse; checked: false; text: i18n("Unmount") }
//PropertyChanges { target: browse; checked: false; text: i18n("Unmount") }
PropertyChanges { target: browse; checked: false; text: i18n("Browse") }
}
]
......@@ -74,12 +77,13 @@ PlasmaComponents.ListItem
onClicked: {
if (state == "UNMOUNTED") {
state = "MOUNTING"
sftp.browse()
//sftp.browse()
}
else if (state == "MOUNTED") {
sftp.unmount()
//sftp.unmount()
state = "UNMOUNTED"
}
sftp.browse()
}
}
......
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