Don't query tags for files in a nc album

This commit is contained in:
Ming Ming 2023-09-09 15:48:22 +08:00
parent 93d6180f06
commit f7f8c22000

View file

@ -349,6 +349,10 @@ class _ViewerDetailPaneState extends State<ViewerDetailPane> {
Future<void> _initTags() async {
assert(_file != null);
if (file_util.isNcAlbumFile(widget.account, _file!)) {
// tag is not supported here
return;
}
final c = KiwiContainer().resolve<DiContainer>();
try {
final tags = await ListFileTag(c)(widget.account, _file!);