Skip to content

Commit

Permalink
状态栏信息更新
Browse files Browse the repository at this point in the history
  • Loading branch information
xplusky committed Apr 19, 2020
1 parent c02cb5f commit 5628b2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 2 additions & 4 deletions MoeLoaderP.Core/Extend.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ public static string ToPairsString(this Pairs pairs)

return query;
}
public static dynamic CheckListNull(dynamic dyObj)
{
return dyObj == null ? new List<dynamic>() : dyObj;
}
public static dynamic CheckListNull(dynamic dyObj) => dyObj ?? new List<dynamic>();

public static bool IsNaN(this string text)
{
return string.IsNullOrWhiteSpace(text);
Expand Down
6 changes: 4 additions & 2 deletions MoeLoaderP.Wpf/ControlParts/SearchControl.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,10 @@ public void Init(SiteManager manager, Settings settings)
private void VisualUpdate()
{
this.GoState(CurrentSelectedSite.SupportState.IsSupportAccount ? nameof(ShowAccountButtonState) : nameof(HideAccountButtonState));
var list = new List<MenuItemFunc>();
list.Add(CurrentSelectedSite.MenuFunc);
var list = new List<MenuItemFunc>
{
CurrentSelectedSite.MenuFunc
};
var lv2 = CurrentSelectedSite.SubMenu;
if (MoeSitesLv2ComboBox.SelectedIndex != -1 && lv2.Any())
{
Expand Down

0 comments on commit 5628b2e

Please sign in to comment.