mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-04 00:46:12 +02:00
Move SetIsLocked call from WindowPos to PluginWindow initialization
This commit is contained in:
@@ -84,7 +84,6 @@ namespace DesktopMagic
|
||||
window.Topmost = false;
|
||||
SendWpfWindowBack(window);
|
||||
SendWpfWindowBack(window);
|
||||
WindowPos.SetIsLocked(window, true);
|
||||
break;
|
||||
case "Always on Top":
|
||||
window.Topmost = true;
|
||||
|
||||
@@ -323,6 +323,7 @@ public partial class PluginWindow : Window, IPluginWindow
|
||||
imageBorder.BorderThickness = new Thickness(0);
|
||||
image.Margin = new Thickness(0);
|
||||
WindowPos.SetWindowLayer(this, pluginClassInstance?.windowLayer.Value ?? "Always on Bottom");
|
||||
WindowPos.SetIsLocked(window, true);
|
||||
tileBar.CaptionHeight = 0;
|
||||
ResizeMode = ResizeMode.NoResize;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user