mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 19:57:07 +02:00
[PTRun]Fluent UX and switch to WpfUI (#28538)
* New design
* Updating icons
* Adding keywords
* Only show plugins when search query is empty
* Update App.xaml
* Update App.xaml
* Filter plugins
* Fix image name
* refresh plugins overview
* fix context menu icons in win10
* Remove unused animations
* Resolving crashing
* Fix focus visual and a11y
* Remove unused styles
* Revert "Remove unused styles"
This reverts commit 65f29ae6ed.
* Fix value generator light vs dark icon
* Fix tab characters
* Fix CI
* Update SettingsReader.cs
* Adding common OS check helper
* Update MainWindow.xaml.cs
* Fix background
* More tweaks
* XAML styler and updating legacy brushes
* Updates + xaml styling
* Fix CI
* Fix CI2
* fix font family and overview refresh
* Delete shutdown.light-1.png
* Updating icons
* Set DPI
---------
Co-authored-by: Davide Giacometti <davide.giacometti@outlook.it>
This commit is contained in:
@@ -56,13 +56,20 @@ namespace Wox.Plugin
|
||||
return;
|
||||
}
|
||||
|
||||
public void Update(PowerLauncherPluginSettings setting, IPublicAPI api)
|
||||
public void Update(PowerLauncherPluginSettings setting, IPublicAPI api, Action refreshPluginsOverviewCallback)
|
||||
{
|
||||
if (setting == null || api == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
bool refreshOverview = false;
|
||||
if (Metadata.Disabled != setting.Disabled
|
||||
|| Metadata.ActionKeyword != setting.ActionKeyword)
|
||||
{
|
||||
refreshOverview = true;
|
||||
}
|
||||
|
||||
// If the enabled state is policy managed then we skip the update of the disabled state as it must be a manual settings.json manipulation.
|
||||
if (!Metadata.IsEnabledPolicyConfigured)
|
||||
{
|
||||
@@ -94,6 +101,11 @@ namespace Wox.Plugin
|
||||
{
|
||||
(Plugin as IReloadable)?.ReloadData();
|
||||
}
|
||||
|
||||
if (refreshOverview)
|
||||
{
|
||||
refreshPluginsOverviewCallback?.Invoke();
|
||||
}
|
||||
}
|
||||
|
||||
public override string ToString()
|
||||
|
||||
Reference in New Issue
Block a user