fix ab tag flashing when refreshing (#7471)

* opt isFull, fix web console menu

Signed-off-by: 21pages <pages21@163.com>

* fix ab tag flashing when refreshing

Signed-off-by: 21pages <pages21@163.com>

---------

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2024-03-22 11:02:22 +08:00
committed by GitHub
parent 57b17b1798
commit 285e298a8b
2 changed files with 47 additions and 57 deletions

View File

@@ -376,13 +376,14 @@ class _AddressBookState extends State<AddressBook> {
sortMenuItem(),
syncMenuItem(),
filterMenuItem(),
MenuEntryDivider<String>(),
getEntry(translate("ab_web_console_tip"), () async {
final url = await bind.mainGetApiServer();
if (await canLaunchUrlString(url)) {
launchUrlString(url);
}
}),
if (!gFFI.abModel.legacyMode.value) MenuEntryDivider<String>(),
if (!gFFI.abModel.legacyMode.value)
getEntry(translate("ab_web_console_tip"), () async {
final url = await bind.mainGetApiServer();
if (await canLaunchUrlString(url)) {
launchUrlString(url);
}
}),
];
mod_menu.showMenu(