mirror of
https://github.com/hawkeye-stan/msfs-popout-panel-manager.git
synced 2024-11-21 21:30:12 +00:00
Fixed pop out title bar customization saving issue
This commit is contained in:
parent
43eb1a0ded
commit
cb3eaa1466
6 changed files with 16 additions and 2 deletions
|
@ -1,6 +1,8 @@
|
||||||
namespace MSFSPopoutPanelManager.DomainModel.Setting
|
using MSFSPopoutPanelManager.Shared;
|
||||||
|
|
||||||
|
namespace MSFSPopoutPanelManager.DomainModel.Setting
|
||||||
{
|
{
|
||||||
public class PopOutTitleBarCustomization
|
public class PopOutTitleBarCustomization : ObservableObject
|
||||||
{
|
{
|
||||||
public PopOutTitleBarCustomization()
|
public PopOutTitleBarCustomization()
|
||||||
{
|
{
|
||||||
|
|
|
@ -231,11 +231,13 @@
|
||||||
Margin="20,0,0,0"
|
Margin="20,0,0,0"
|
||||||
BindingPath="Width"
|
BindingPath="Width"
|
||||||
DataItem="{Binding DataItem}"
|
DataItem="{Binding DataItem}"
|
||||||
|
IsEnabled="{c:Binding 'DataItem.PanelType!=profileDomain:PanelType.HudBarWindow'}"
|
||||||
SourceUpdated="Data_SourceUpdated" />
|
SourceUpdated="Data_SourceUpdated" />
|
||||||
<local:PanelConfigField
|
<local:PanelConfigField
|
||||||
Margin="20,0,0,0"
|
Margin="20,0,0,0"
|
||||||
BindingPath="Height"
|
BindingPath="Height"
|
||||||
DataItem="{Binding DataItem}"
|
DataItem="{Binding DataItem}"
|
||||||
|
IsEnabled="{c:Binding 'DataItem.PanelType!=profileDomain:PanelType.HudBarWindow'}"
|
||||||
SourceUpdated="Data_SourceUpdated" />
|
SourceUpdated="Data_SourceUpdated" />
|
||||||
|
|
||||||
<local:MoveAndResizePanelButton Margin="12,0,0,0" />
|
<local:MoveAndResizePanelButton Margin="12,0,0,0" />
|
||||||
|
|
|
@ -121,6 +121,8 @@ namespace MSFSPopoutPanelManager.Orchestration
|
||||||
break;
|
break;
|
||||||
case PanelConfigPropertyName.Width:
|
case PanelConfigPropertyName.Width:
|
||||||
case PanelConfigPropertyName.Height:
|
case PanelConfigPropertyName.Height:
|
||||||
|
if (panelConfig.PanelType == PanelType.HudBarWindow)
|
||||||
|
return;
|
||||||
|
|
||||||
if (panelConfig.HideTitlebar)
|
if (panelConfig.HideTitlebar)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 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.
|
* Added preference option in pop out settings to disable pop out progress messages from appearing.
|
|
@ -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 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.
|
* Added preference option in pop out settings to disable pop out progress messages from appearing.
|
||||||
|
|
||||||
## Version 4.0.0
|
## Version 4.0.0
|
||||||
|
|
|
@ -166,6 +166,10 @@ namespace MSFSPopoutPanelManager.WindowsAgent
|
||||||
var rect = WindowActionManager.GetWindowRectangle(panelConfig.PanelHandle);
|
var rect = WindowActionManager.GetWindowRectangle(panelConfig.PanelHandle);
|
||||||
panelConfig.Left = rect.Left;
|
panelConfig.Left = rect.Left;
|
||||||
panelConfig.Top = rect.Top;
|
panelConfig.Top = rect.Top;
|
||||||
|
|
||||||
|
if (panelConfig.PanelType == PanelType.HudBarWindow)
|
||||||
|
return;
|
||||||
|
|
||||||
panelConfig.Width = rect.Width;
|
panelConfig.Width = rect.Width;
|
||||||
panelConfig.Height = rect.Height;
|
panelConfig.Height = rect.Height;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue