更新整理
This commit is contained in:
@@ -1,16 +1,17 @@
|
||||
|
||||
using WPFluent.Interop;
|
||||
|
||||
using System;
|
||||
|
||||
using System.Diagnostics;
|
||||
using System.IO.Packaging;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Interop;
|
||||
|
||||
using System.Windows.Threading;
|
||||
|
||||
using WPFluent.Interop;
|
||||
|
||||
namespace WPFluent.Controls;
|
||||
|
||||
public static class Splash
|
||||
@@ -45,7 +46,7 @@ public static class Splash
|
||||
|
||||
if (completed != null)
|
||||
{
|
||||
_ = Task.Run(() =>
|
||||
Task.Run(() =>
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -76,8 +77,8 @@ public static class Splash
|
||||
{
|
||||
nint hwnd = new WindowInteropHelper(owner).Handle;
|
||||
|
||||
_ = User32.SetForegroundWindow(hwnd);
|
||||
_ = User32.BringWindowToTop(hwnd);
|
||||
User32.SetForegroundWindow(hwnd);
|
||||
User32.BringWindowToTop(hwnd);
|
||||
});
|
||||
};
|
||||
if (forced)
|
||||
|
||||
Reference in New Issue
Block a user