1
0
Fork 0
mirror of https://github.com/hawkeye-stan/msfs-popout-panel-manager.git synced 2024-11-21 13:20:11 +00:00

Fixed pop out title bar customization saving issue

This commit is contained in:
hawkeye 2023-07-21 17:45:16 -04:00
parent 43eb1a0ded
commit cb3eaa1466
6 changed files with 16 additions and 2 deletions

View file

@ -1,6 +1,8 @@
namespace MSFSPopoutPanelManager.DomainModel.Setting
using MSFSPopoutPanelManager.Shared;
namespace MSFSPopoutPanelManager.DomainModel.Setting
{
public class PopOutTitleBarCustomization
public class PopOutTitleBarCustomization : ObservableObject
{
public PopOutTitleBarCustomization()
{

View file

@ -231,11 +231,13 @@
Margin="20,0,0,0"
BindingPath="Width"
DataItem="{Binding DataItem}"
IsEnabled="{c:Binding 'DataItem.PanelType!=profileDomain:PanelType.HudBarWindow'}"
SourceUpdated="Data_SourceUpdated" />
<local:PanelConfigField
Margin="20,0,0,0"
BindingPath="Height"
DataItem="{Binding DataItem}"
IsEnabled="{c:Binding 'DataItem.PanelType!=profileDomain:PanelType.HudBarWindow'}"
SourceUpdated="Data_SourceUpdated" />
<local:MoveAndResizePanelButton Margin="12,0,0,0" />

View file

@ -121,6 +121,8 @@ namespace MSFSPopoutPanelManager.Orchestration
break;
case PanelConfigPropertyName.Width:
case PanelConfigPropertyName.Height:
if (panelConfig.PanelType == PanelType.HudBarWindow)
return;
if (panelConfig.HideTitlebar)
{

View file

@ -2,4 +2,6 @@
* Fixed issue when full screen mode is activated which may cause black bar to appear on either size (top/bottom or left/right).
* Fixed preferences pop out title bar color customization setting not saving.
* Added preference option in pop out settings to disable pop out progress messages from appearing.

View file

@ -5,6 +5,8 @@
* Fixed issue when full screen mode is activated which may cause black bar to appear on either size (top/bottom or left/right).
* Fixed preferences pop out title bar color customization setting not saving.
* Added preference option in pop out settings to disable pop out progress messages from appearing.
## Version 4.0.0

View file

@ -166,6 +166,10 @@ namespace MSFSPopoutPanelManager.WindowsAgent
var rect = WindowActionManager.GetWindowRectangle(panelConfig.PanelHandle);
panelConfig.Left = rect.Left;
panelConfig.Top = rect.Top;
if (panelConfig.PanelType == PanelType.HudBarWindow)
return;
panelConfig.Width = rect.Width;
panelConfig.Height = rect.Height;