A widget should have only one IWidgetViewModel by default... wondering whether if we should go for the first served, or throw if multiple detected, or ignore the widget
This commit is contained in:
@@ -5,8 +5,8 @@ using Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
namespace Hyperbar.Windows;
|
||||
|
||||
public class AppInitializer([FromKeyedServices(nameof(WidgetBarViewModel))] WidgetBarView view,
|
||||
[FromKeyedServices(nameof(WidgetBarViewModel))] WidgetBarViewModel viewModel,
|
||||
public class AppInitializer([FromKeyedServices(nameof(WidgetViewModel))] WidgetBarView view,
|
||||
[FromKeyedServices(nameof(WidgetViewModel))] WidgetViewModel viewModel,
|
||||
DesktopBar desktopFlyout,
|
||||
AppConfiguration configuration) :
|
||||
IInitializer
|
||||
|
||||
Reference in New Issue
Block a user