- range error when no upgradeable
- remove auto input pwd when apt pwd request
This commit is contained in:
Junyuan Feng
2022-05-25 13:29:51 +08:00
parent 8cbe76d9ff
commit 9cbd29d3c1
6 changed files with 29 additions and 25 deletions

View File

@@ -73,9 +73,6 @@ class _AptManagePageState extends State<AptManagePage>
// ignore: prefer_function_declarations_over_variables
PwdRequestFunc onPwdRequest = (triedTimes, user) async {
if (!mounted) return '';
if (triedTimes == 1) {
return widget.spi.pwd;
}
await showRoundDialog(
context,
triedTimes == 3 ? s.lastTry : (user ?? s.unknown),

View File

@@ -282,8 +282,14 @@ class _MyHomePageState extends State<MyHomePage>
UrlText(
text: s.aboutThanks,
),
const UrlText(text: rainSunMeGithub, replace: 'RainSunMe',),
const UrlText(text: fectureGithub, replace: 'fecture',)
const UrlText(
text: rainSunMeGithub,
replace: 'RainSunMe',
),
const UrlText(
text: fectureGithub,
replace: 'fecture',
)
],
child: Text(s.license),
)