Conversation
There was a problem hiding this comment.
Pull Request Overview
Fixes a bug in the portable mode detection logic where the deletion indicator file check was using an incorrect path. The fix ensures that the deletion indicator file is properly located within the portable data directory.
- Corrects the path for checking the deletion indicator file existence
- Adds
readonlymodifier to static fields for better immutability - Improves code readability by splitting the condition check across multiple lines
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| Flow.Launcher/SettingPages/ViewModels/SettingsPaneGeneralViewModel.cs | Adds readonly modifier to the _portableMode field |
| Flow.Launcher.Infrastructure/UserSettings/DataLocation.cs | Fixes deletion indicator file path check and adds readonly modifiers to path fields |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
|
🥷 Code experts: jjw24, onesounds Jack251970, onesounds have most 👩💻 activity in the files. See details
Activity based on git-commit:
Knowledge based on git-blame:
Activity based on git-commit:
Knowledge based on git-blame: ✨ Comment |
|
Be a legend 🏆 by adding a before and after screenshot of the changes you made, especially if they are around UI/UX. |
…e_fix Fix PortableMode Check Issue
From #3982.
Use
!File.Exists(Path.Combine(PortableDataPath, DeletionIndicatorFile)))instead of!File.Exists(DeletionIndicatorFile))so that we can check if deletion indicator file exists.