mirror of
https://github.com/Stone-Red-Code/DesktopMagic.git
synced 2026-09-08 15:56: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;
|
window.Topmost = false;
|
||||||
SendWpfWindowBack(window);
|
SendWpfWindowBack(window);
|
||||||
SendWpfWindowBack(window);
|
SendWpfWindowBack(window);
|
||||||
WindowPos.SetIsLocked(window, true);
|
|
||||||
break;
|
break;
|
||||||
case "Always on Top":
|
case "Always on Top":
|
||||||
window.Topmost = true;
|
window.Topmost = true;
|
||||||
|
|||||||
@@ -323,6 +323,7 @@ public partial class PluginWindow : Window, IPluginWindow
|
|||||||
imageBorder.BorderThickness = new Thickness(0);
|
imageBorder.BorderThickness = new Thickness(0);
|
||||||
image.Margin = new Thickness(0);
|
image.Margin = new Thickness(0);
|
||||||
WindowPos.SetWindowLayer(this, pluginClassInstance?.windowLayer.Value ?? "Always on Bottom");
|
WindowPos.SetWindowLayer(this, pluginClassInstance?.windowLayer.Value ?? "Always on Bottom");
|
||||||
|
WindowPos.SetIsLocked(window, true);
|
||||||
tileBar.CaptionHeight = 0;
|
tileBar.CaptionHeight = 0;
|
||||||
ResizeMode = ResizeMode.NoResize;
|
ResizeMode = ResizeMode.NoResize;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user