1
0
mirror of https://github.com/QRouland/UTPass.git synced 2025-02-11 15:07:16 +00:00

Fix main page not reloading on imports

This commit is contained in:
Quentin Rouland 2025-02-04 17:27:01 +01:00
parent bcc6d7c316
commit c106bbec19
6 changed files with 9 additions and 8 deletions

View File

@ -109,6 +109,7 @@ bool Pass::deletePasswordStore()
void Pass::slotDeletePasswordStoreResult(bool err) void Pass::slotDeletePasswordStoreResult(bool err)
{ {
this->initPasswordStore(); // reinit an empty password-store
if (err) { if (err) {
qInfo() << "[Pass] delete Password Store Failed"; qInfo() << "[Pass] delete Password Store Failed";
emit deletePasswordStoreFailed("failed to delete password store"); emit deletePasswordStoreFailed("failed to delete password store");

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: utpass.qrouland\n" "Project-Id-Version: utpass.qrouland\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2025-02-04 14:44+0000\n" "POT-Creation-Date: 2025-02-04 17:18+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"

View File

@ -77,8 +77,8 @@ Page {
SuccessDialog { SuccessDialog {
textSuccess: i18n.tr("Password Store deleted !") textSuccess: i18n.tr("Password Store deleted !")
onDialogClosed: { onDialogClosed: {
pageStack.pop(); pageStack.clear();
pageStack.pop(); pageStack.push(Qt.resolvedUrl("../PasswordList.qml"));
} }
} }

View File

@ -87,8 +87,8 @@ Page {
SuccessDialog { SuccessDialog {
textSuccess: i18n.tr("Password store sucessfully imported !") textSuccess: i18n.tr("Password store sucessfully imported !")
onDialogClosed: { onDialogClosed: {
pageStack.pop(); pageStack.clear();
pageStack.pop(); pageStack.push(Qt.resolvedUrl("../PasswordList.qml"));
} }
} }

View File

@ -121,7 +121,7 @@ Page {
width: parent.width width: parent.width
horizontalAlignment: Text.AlignHCenter horizontalAlignment: Text.AlignHCenter
verticalAlignment: Text.AlignVCenter verticalAlignment: Text.AlignVCenter
text: i18n.tr('Users IDs : ') text: i18n.tr('User IDs : ')
color: theme.palette.normal.backgroundText color: theme.palette.normal.backgroundText
} }

View File

@ -77,8 +77,8 @@ Page {
SuccessDialog { SuccessDialog {
textSuccess: i18n.tr("Password store sucessfully imported !") textSuccess: i18n.tr("Password store sucessfully imported !")
onDialogClosed: { onDialogClosed: {
pageStack.pop(); pageStack.clear();
pageStack.pop(); pageStack.push(Qt.resolvedUrl("../../PasswordList.qml"));
} }
} }