mirror of
https://github.com/LorisYounger/VPet.ModMaker.git
synced 2024-08-30 18:22:21 +00:00
更新
This commit is contained in:
parent
5a29c279e4
commit
250da82648
@ -62,7 +62,7 @@ public class ModMaker : MainPlugin
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Maker.Topmost = true;
|
Maker.Activate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -42,16 +42,12 @@ public partial class ModMakerWindow : WindowX
|
|||||||
|
|
||||||
private void ModMakerWindow_Closed(object sender, EventArgs e)
|
private void ModMakerWindow_Closed(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
// 当模组载入错误时, 会产生野窗口, 需要手动关闭
|
||||||
foreach (var item in Application.Current.Windows)
|
foreach (var item in Application.Current.Windows)
|
||||||
{
|
{
|
||||||
if (item is ModEditWindow window)
|
if (item is ModEditWindow window)
|
||||||
window.Close();
|
window.Close();
|
||||||
}
|
}
|
||||||
try
|
|
||||||
{
|
|
||||||
DataContext = null;
|
|
||||||
}
|
|
||||||
catch { }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ListBoxItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
private void ListBoxItem_MouseDoubleClick(object sender, MouseButtonEventArgs e)
|
||||||
|
Loading…
Reference in New Issue
Block a user