mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
Refactoring: improve naming
This commit is contained in:
parent
bb5440a7d6
commit
145761495c
1 changed files with 6 additions and 6 deletions
|
@ -262,12 +262,12 @@ class _DynamicAlbumBrowserState extends State<DynamicAlbumBrowser>
|
|||
tooltip: MaterialLocalizations.of(context).moreButtonTooltip,
|
||||
itemBuilder: (context) => [
|
||||
PopupMenuItem(
|
||||
value: _SelectionAppBarOption.delete,
|
||||
value: _SelectionMenuOption.delete,
|
||||
child: Text(L10n.global().deleteTooltip),
|
||||
),
|
||||
],
|
||||
onSelected: (option) {
|
||||
if (option == _SelectionAppBarOption.delete) {
|
||||
if (option == _SelectionMenuOption.delete) {
|
||||
_onSelectionAppBarDeletePressed();
|
||||
}
|
||||
},
|
||||
|
@ -551,6 +551,10 @@ class _DynamicAlbumBrowserState extends State<DynamicAlbumBrowser>
|
|||
static const _menuValueConvertBasic = 0;
|
||||
}
|
||||
|
||||
enum _SelectionMenuOption {
|
||||
delete,
|
||||
}
|
||||
|
||||
abstract class _ListItem implements SelectableItem {
|
||||
_ListItem({
|
||||
required this.index,
|
||||
|
@ -641,7 +645,3 @@ class _VideoListItem extends _FileListItem {
|
|||
final Account account;
|
||||
final String previewUrl;
|
||||
}
|
||||
|
||||
enum _SelectionAppBarOption {
|
||||
delete,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue