unmount state removed from palsmoid
This commit is contained in:
parent
ffba8bedc3
commit
35f3f68037
2 changed files with 10 additions and 6 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue