mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-09-30 13:19:44 +02:00
fix(library): keep album batch actions alive after selection closes
Use the album screen context for ReplayGain and conversion so dismissing the selection overlay does not invalidate the pending operation. Cover local and downloaded albums in both themes.
This commit is contained in:
1 parent
2adcdf0768
commit
bb057fd210
3 files changed
+126
-4
No files matched your search
@@ -738,7 +738,7 @@ class _DownloadedAlbumScreenState extends ConsumerState<DownloadedAlbumScreen>
|
||||
label: context.l10n.selectionConvertCount(selectedCount),
|
||||
onPressed: selectedCount > 0
|
||||
? () => showBatchConvertSheet(
|
||||
context,
|
||||
this.context,
|
||||
ref,
|
||||
_selectedUnifiedItems(tracks),
|
||||
onExitSelectionMode: exitSelectionMode,
|
||||
@@ -751,7 +751,7 @@ class _DownloadedAlbumScreenState extends ConsumerState<DownloadedAlbumScreen>
|
||||
label: context.l10n.selectionReplayGainCount(selectedCount),
|
||||
onPressed: selectedCount > 0
|
||||
? () => runBatchReplayGain(
|
||||
context,
|
||||
this.context,
|
||||
_selectedUnifiedItems(tracks),
|
||||
onExitSelectionMode: exitSelectionMode,
|
||||
)
|
||||
|
||||
@@ -547,7 +547,7 @@ class _LocalAlbumScreenState extends ConsumerState<LocalAlbumScreen>
|
||||
label: context.l10n.selectionConvertCount(selectedCount),
|
||||
onPressed: selectedCount > 0
|
||||
? () => showBatchConvertSheet(
|
||||
context,
|
||||
this.context,
|
||||
ref,
|
||||
_selectedUnifiedItems(tracks),
|
||||
onExitSelectionMode: exitSelectionMode,
|
||||
@@ -563,7 +563,7 @@ class _LocalAlbumScreenState extends ConsumerState<LocalAlbumScreen>
|
||||
label: context.l10n.selectionReplayGainCount(selectedCount),
|
||||
onPressed: selectedCount > 0
|
||||
? () => runBatchReplayGain(
|
||||
context,
|
||||
this.context,
|
||||
_selectedUnifiedItems(tracks),
|
||||
onExitSelectionMode: exitSelectionMode,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user