Skip to content

Conversation

@VictoriousRaptor
Copy link
Contributor

@VictoriousRaptor VictoriousRaptor commented Oct 22, 2022

Changes

  1. Currently uid(path in this case) of ProgramSource is case sensitve so this can happen, which will cause duplicate results:
    图片
    Fixed.
  2. Fixed an issue that Flow prevents UWP apps from being completely uninstalled. See Fix for the issue where PT Run was preventing UWP apps from building in VS microsoft/PowerToys#5109.
  3. Refactored class ProgramSource and removed class DisabledProgramSource.
  4. Some small optimizations.
  5. Merged Fix enable/disable/delete button in program plugin settings #1486 because it requires changes in this pr.
  6. BUG: Disabling a program from being display in Programs should reindex data #1532

Tests

  • Changes in Fix enable/disable/delete button in program plugin settings #1486 and new editing dialogue logic.
  • No longer blocks uninstallation of uwp programs.
  • Duplicate paths of ProgramSource not allowed. (for both editing and adding)
  • UID of win32 programs and custom program sources is case-insensitve (to lowercase when set).
  • UID of Program Sources in config file can be converted to case-insensitive.
  • Improved index speed for custom sources (on my pc).
  • Disabling programs in context menu triggers a reindex.

@VictoriousRaptor VictoriousRaptor self-assigned this Oct 22, 2022
@VictoriousRaptor VictoriousRaptor added bug Something isn't working Code Refactor labels Oct 22, 2022

private static IEnumerable<Win32> UnregisteredPrograms(List<ProgramSource> sources, string[] suffixes, string[] protocols)
{
var paths = ExceptDisabledSource(sources.Where(s => Directory.Exists(s.Location) && s.Enabled)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested whether parallel give performance boost? In my very early test it is not so significant somehow

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On my computer it is about 30% faster. I will do some more tests and show you the results.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Parallel gives up to 30% boost on my computer. Not always a significant boost but generally faster.


namespace Flow.Launcher.Plugin.Program
{
//internal static class FileChangeWatcher
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this deleted sorry?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unused. The whole class is commented long ago.

@jjw24
Copy link
Member

jjw24 commented Nov 14, 2022

@VictoriousRaptor please resolve conflict.

@jjw24 jjw24 added the review in progress Indicates that a review is in progress for this PR label Nov 14, 2022
@jjw24 jjw24 added this to the 1.10.0 milestone Nov 14, 2022
@jjw24
Copy link
Member

jjw24 commented Nov 14, 2022

@VictoriousRaptor please update description on what you have tested with this change.

@VictoriousRaptor
Copy link
Contributor Author

@VictoriousRaptor please update description on what you have tested with this change.

Updated. Consider a version bump of the plugin?

@jjw24
Copy link
Member

jjw24 commented Nov 14, 2022

Check the release pr, I think this plugin already has a feature bump already.

Copy link
Member

@jjw24 jjw24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯 👍 👍

@jjw24 jjw24 removed the review in progress Indicates that a review is in progress for this PR label Nov 14, 2022
@jjw24 jjw24 merged commit 2f57d4f into Flow-Launcher:dev Nov 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Code Refactor

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

BUG: Disabling a program from being display in Programs should reindex data

3 participants