mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 18:38:48 +01:00
Make range selection hint replaceable
This commit is contained in:
parent
8eccce506c
commit
0c06fe0607
1 changed files with 9 additions and 6 deletions
|
@ -234,12 +234,15 @@ mixin SelectableItemStreamListMixin<T extends StatefulWidget> on State<T> {
|
|||
// show notification on first entry to selection mode each session
|
||||
if (!wasSelectionMode) {
|
||||
if (!SessionStorage().hasShowRangeSelectNotification) {
|
||||
SnackBarManager().showSnackBar(SnackBar(
|
||||
SnackBarManager().showSnackBar(
|
||||
SnackBar(
|
||||
content: Text(platform_k.isWeb
|
||||
? L10n.global().webSelectRangeNotification
|
||||
: L10n.global().mobileSelectRangeNotification),
|
||||
duration: k.snackBarDurationNormal,
|
||||
));
|
||||
),
|
||||
canBeReplaced: true,
|
||||
);
|
||||
SessionStorage().hasShowRangeSelectNotification = true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue