mirror of
https://github.com/seiichiro0185/sailotp.git
synced 2024-11-21 15:29:42 +00:00
Fixed a small bug found by harbour-QA
This commit is contained in:
parent
91dfc732a3
commit
b039fa737a
3 changed files with 7 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue