Svuota il cestino (0.6.8)
Voce nel menu della cartella Trash, con RemorseItem: e' irreversibile. Usa Empty del motore come la vista originale.
This commit is contained in:
1 parent
ca7d4f66e4
commit
abbf5b4c5c
6 files changed
+52
-7
No files matched your search
@@ -79,6 +79,12 @@ Page {
|
||||
text: page.soloNonLetti ? qsTr("Mostra tutti") : qsTr("Solo non letti")
|
||||
onClicked: { page.soloNonLetti = !page.soloNonLetti; page.carica() }
|
||||
}
|
||||
MenuItem {
|
||||
// Il cestino si svuota da qui, dove lo si sta guardando.
|
||||
text: qsTr("Svuota il cestino")
|
||||
visible: engine.folderType(page.cartella) === "trash"
|
||||
onClicked: page.chiediSvuota()
|
||||
}
|
||||
}
|
||||
|
||||
delegate: BackgroundItem {
|
||||
@@ -162,4 +168,14 @@ Page {
|
||||
color: Theme.secondaryColor
|
||||
}
|
||||
}
|
||||
|
||||
// Svuotare e' irreversibile: Sailfish da' qualche secondo per ripensarci.
|
||||
RemorseItem { id: remorse }
|
||||
|
||||
function chiediSvuota() {
|
||||
remorse.execute(qsTr("Svuoto il cestino"), function() {
|
||||
engine.emptyTrash();
|
||||
page.carica();
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user