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