diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-04 14:09:07 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2018-12-04 14:09:07 +0100 |
| commit | 9d381671ec0b1266448eddbf4c4935cdc7d23a9f (patch) | |
| tree | 34e9b4b0296eea8dba03024491934413bcd54083 /src/GraphicObjects/Menu.cs | |
| parent | a64627699d4919d389522d92032ce4f05704d313 (diff) | |
docking save/restore; use image surfaces as cache for graphic object instead of backend similar which blink too much
Diffstat (limited to 'src/GraphicObjects/Menu.cs')
| -rw-r--r-- | src/GraphicObjects/Menu.cs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/GraphicObjects/Menu.cs b/src/GraphicObjects/Menu.cs index dbc1d636..0ddb8eae 100644 --- a/src/GraphicObjects/Menu.cs +++ b/src/GraphicObjects/Menu.cs @@ -51,10 +51,15 @@ namespace Crow NotifyValueChanged ("Orientation", orientation); } } - [XmlIgnore]public bool AutomaticOpenning + [XmlIgnore]public bool AutomaticOpening { get { return autoOpen; } - set { autoOpen = value; } + set { + if (autoOpen == value) + return; + autoOpen = value; + NotifyValueChanged ("AutomaticOpening", autoOpen); + } } #endregion @@ -70,7 +75,7 @@ namespace Crow public override void onMouseLeave (object sender, MouseMoveEventArgs e) { base.onMouseLeave (sender, e); - AutomaticOpenning = false; + AutomaticOpening = false; } } } |