File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Flow.Launcher.Core/Plugin Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ public void Save()
112
112
public Control CreateSettingPanel ( )
113
113
{
114
114
if ( Settings == null || Settings . Count == 0 )
115
- return new ( ) ;
115
+ return null ;
116
116
117
117
var settingWindow = new UserControl ( ) ;
118
118
var mainPanel = new Grid { Margin = settingPanelMargin , VerticalAlignment = VerticalAlignment . Center } ;
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public bool IsExpanded
90
90
private Control _bottomPart2 ;
91
91
public Control BottomPart2 => IsExpanded ? _bottomPart2 ??= new InstalledPluginDisplayBottomData ( ) : null ;
92
92
93
- public bool HasSettingControl => PluginPair . Plugin is ISettingProvider ;
93
+ public bool HasSettingControl => PluginPair . Plugin is ISettingProvider settingProvider && settingProvider . CreateSettingPanel ( ) != null ;
94
94
public Control SettingControl
95
95
=> IsExpanded
96
96
? _settingControl
You can’t perform that action at this time.
0 commit comments