Use Engine.LastWindow instead of HostApplication.CurrentWindow (new convention)
This commit is contained in:
parent
a0f8aeb384
commit
3e6b8a2669
@ -133,8 +133,8 @@ namespace UniversalEditor.UserInterface
|
||||
AttachCommandEventHandler("ViewFullScreen", delegate(object sender, EventArgs e)
|
||||
{
|
||||
Command cmd = (sender as Command);
|
||||
HostApplication.CurrentWindow.FullScreen = !HostApplication.CurrentWindow.FullScreen;
|
||||
cmd.Checked = HostApplication.CurrentWindow.FullScreen;
|
||||
LastWindow.FullScreen = !LastWindow.FullScreen;
|
||||
cmd.Checked = LastWindow.FullScreen;
|
||||
});
|
||||
#endregion
|
||||
#region Tools
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user