mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
[mob][photos] Minor perf improvement when deleting in DetailPage
This commit is contained in:
parent
3361c1f149
commit
58384004b4
@ -355,7 +355,7 @@ class _DetailPageState extends State<DetailPage> {
|
||||
return;
|
||||
}
|
||||
setState(() {
|
||||
_files!.remove(file);
|
||||
_files!.removeAt(_selectedIndexNotifier.value);
|
||||
_selectedIndexNotifier.value = min(
|
||||
_selectedIndexNotifier.value,
|
||||
totalFiles - 2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user