Add a remorse popup when resetting the database
parent
3a61c6c040
commit
d804994019
|
@ -59,10 +59,21 @@ Page {
|
||||||
model: serversModel
|
model: serversModel
|
||||||
visible: serversModel.loaded
|
visible: serversModel.loaded
|
||||||
|
|
||||||
|
RemorsePopup {
|
||||||
|
id: remorsePopup
|
||||||
|
}
|
||||||
|
|
||||||
PullDownMenu {
|
PullDownMenu {
|
||||||
MenuItem {
|
MenuItem {
|
||||||
text: qsTr( "Reset database" )
|
text: qsTr( "Reset database" )
|
||||||
onClicked: resetDatabase()
|
onClicked: {
|
||||||
|
remorsePopup.execute(
|
||||||
|
qsTr( "Resetting database" ),
|
||||||
|
function() {
|
||||||
|
serversPage.resetDatabase()
|
||||||
|
}
|
||||||
|
)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
|
|
|
@ -119,6 +119,10 @@
|
||||||
<source>No servers configured yet, create your first one with the Settings menu</source>
|
<source>No servers configured yet, create your first one with the Settings menu</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
<message>
|
||||||
|
<source>Resetting database</source>
|
||||||
|
<translation type="unfinished"></translation>
|
||||||
|
</message>
|
||||||
</context>
|
</context>
|
||||||
<context>
|
<context>
|
||||||
<name>SettingsPage</name>
|
<name>SettingsPage</name>
|
||||||
|
|
Loading…
Reference in New Issue