Update localization and add ad and SFW marking

This commit is contained in:
2023-11-30 15:04:20 +08:00
parent a154261acf
commit 7095e144b8
9 changed files with 160 additions and 15 deletions

View File

@@ -52,12 +52,12 @@ class _GalleryPage extends State<GalleryPage>
(await api.updateGalleryFileMeta(_gid,
isNsfw: isNsfw, cancel: _markAsNsfwCancel))
.unwrap();
if (!_cancel!.isCancelled) {
if (!_markAsNsfwCancel!.isCancelled) {
_fetchData();
}
} catch (e) {
if (!_cancel!.isCancelled) {
_log.severe("Failed to mark gallery $_gid:", e);
if (!_markAsNsfwCancel!.isCancelled) {
_log.warning("Failed to mark gallery $_gid:", e);
}
}
}