diff --git a/qml/pages/AddOTP.qml b/qml/pages/AddOTP.qml index e72e286..782f7a6 100644 --- a/qml/pages/AddOTP.qml +++ b/qml/pages/AddOTP.qml @@ -148,7 +148,8 @@ Dialog { // There were no parameters -> Add new entry DB.addOTP(otpLabel.text, otpSecret.text, paramType, otpCounter.text, appWin.listModel.count); } - // Refresh the main Page + + // Refresh the main Page parentPage.refreshOTPList(); } } diff --git a/qml/pages/MainView.qml b/qml/pages/MainView.qml index 9a0d80c..2a7e540 100644 --- a/qml/pages/MainView.qml +++ b/qml/pages/MainView.qml @@ -54,9 +54,11 @@ Page { // Reload the List of OTPs from storage function refreshOTPList() { otpList.visible = false; + otpList.model = null; // Hack to prevent unaccessible pulley after List refresh appWin.listModel.clear(); DB.getOTP(); refreshOTPValues(); + otpList.model = appWin.listModel; // Hack to prevent unaccessible pulley after List refresh otpList.visible = true; } @@ -186,8 +188,8 @@ Page { } } } else { - DB.resetFav(title, secret) - appWin.setCover(-1) + DB.resetFav(title, secret); + appWin.setCover(-1); appWin.listModel.setProperty(index, "fav", 0); } } diff --git a/rpm/harbour-sailotp.yaml b/rpm/harbour-sailotp.yaml index 02fe2c0..65a9844 100644 --- a/rpm/harbour-sailotp.yaml +++ b/rpm/harbour-sailotp.yaml @@ -1,7 +1,7 @@ Name: harbour-sailotp Summary: SailOTP Version: 1.0 -Release: 1 +Release: 2 Group: Security URL: https://github.com/seiichiro0185/sailotp/ License: "BSD\t"