mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 08:56:15 +02:00
- Run update plugins method in another task
This commit is contained in:
@@ -960,13 +960,16 @@ namespace DesktopMagic
|
|||||||
private void UpdatePluginsButton_Click(object sender, RoutedEventArgs e)
|
private void UpdatePluginsButton_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
LoadPlugins();
|
LoadPlugins();
|
||||||
foreach (Window window in Windows)
|
Task.Run(() =>
|
||||||
{
|
{
|
||||||
if (window.GetType() == typeof(PluginWindow))
|
foreach (Window window in Windows.ToArray())
|
||||||
{
|
{
|
||||||
((PluginWindow)window).UpdatePluginWindow();
|
if (window.GetType() == typeof(PluginWindow))
|
||||||
|
{
|
||||||
|
((PluginWindow)window).UpdatePluginWindow();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OpenPluginsFolderButton_Click(object sender, RoutedEventArgs e)
|
private void OpenPluginsFolderButton_Click(object sender, RoutedEventArgs e)
|
||||||
|
|||||||
Reference in New Issue
Block a user