Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions Plain Craft Launcher 2/FormMain.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,15 +164,6 @@
ModBase.ApplicationStartTick = TimeUtils.GetTimeTick();
ModBase.FrmHandle = new WindowInteropHelper(this).Handle;
// 读取设置
_ = Config.Preference.Background.WallpaperOpacity;
_ = Config.Preference.Background.WallpaperBlurRadius;
_ = Config.Preference.WindowTitleType;
_ = Config.Preference.Hide.PageDownload;
_ = Config.Preference.Background.AutoPauseVideo; // 智能暂停视频背景
ModSetup.UiLogoType((int)Config.Preference.WindowTitleType);
ModSetup.UiLogoText(Config.Preference.WindowTitleCustomText);
ModSetup.UiLogoLeft(Config.Preference.TopBarLeftAlign);
PageSetupUI.HiddenRefresh();
PageSetupUI.BackgroundRefresh(false, true);
ModMusic.MusicRefreshPlay(false, true);
// 扩展按钮
Expand All @@ -195,7 +186,7 @@
// 加载窗口

ThemeManager.ThemeRefresh();

ModSetup.ApplyAll();
Lifecycle.CurrentApplication.Resources["BlurSamplingRate"] = Config.Preference.Blur.SamplingRate * 0.01d;
Lifecycle.CurrentApplication.Resources["BlurType"] = Config.Preference.Blur.KernelType;
if (Config.Preference.Blur.IsEnabled)
Expand Down Expand Up @@ -1602,7 +1593,7 @@
/// </summary>
public List<PageStackData> PageStack = new();

public class PageStackData

Check warning on line 1596 in Plain Craft Launcher 2/FormMain.xaml.cs

View workflow job for this annotation

GitHub Actions / build (CI, x64) / Build

'FormMain.PageStackData' defines operator == or operator != but does not override Object.GetHashCode()

Check warning on line 1596 in Plain Craft Launcher 2/FormMain.xaml.cs

View workflow job for this annotation

GitHub Actions / build (CI, x64) / Build

'FormMain.PageStackData' overrides Object.Equals(object o) but does not override Object.GetHashCode()
{
/// <summary>
/// <list type="bullet">
Expand All @@ -1624,7 +1615,7 @@

public PageType Page;

public override bool Equals(object other)

Check warning on line 1618 in Plain Craft Launcher 2/FormMain.xaml.cs

View workflow job for this annotation

GitHub Actions / build (CI, x64) / Build

Nullability of type of parameter 'other' doesn't match overridden member (possibly because of nullability attributes).

Check warning on line 1618 in Plain Craft Launcher 2/FormMain.xaml.cs

View workflow job for this annotation

GitHub Actions / build (CI, ARM64) / Build

Nullability of type of parameter 'other' doesn't match overridden member (possibly because of nullability attributes).
{
if (other is null)
return false;
Expand Down
Loading
Loading