-
-
Notifications
You must be signed in to change notification settings - Fork 456
Fix PortableMode Check Issue #3999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.