This commit is contained in:
Hakoyu 2023-11-27 22:20:54 +08:00
parent 5a29c279e4
commit 250da82648
2 changed files with 2 additions and 6 deletions

View File

@ -62,7 +62,7 @@ public class ModMaker : MainPlugin
}
else
{
Maker.Topmost = true;
Maker.Activate();
}
}

View File

@ -42,16 +42,12 @@ public partial class ModMakerWindow : WindowX
private void ModMakerWindow_Closed(object sender, EventArgs e)
{
// 当模组载入错误时, 会产生野窗口, 需要手动关闭
foreach (var item in Application.Current.Windows)
{
if (item is ModEditWindow window)
window.Close();
}
try
{
DataContext = null;
}
catch { }
}
private void ListBoxItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)