The selected files are not saved when switching the view from Grid to List and backward. Step to reproduce: 1. Select some files 2. Click on list view button 3. Expected result: selected files are still selected Actual result: no files selected  <img width="1176" alt="Image" src="https://github.com/user-attachments/assets/35b8d854-3c95-4ce1-940c-11a5db6ba25d" />
The selected files are not saved when switching the view from Grid to List and backward.
Step to reproduce:
Actual result: no files selected
