diff --git a/Source/RunActivity/Viewer3D/Popups/WindowManager.cs b/Source/RunActivity/Viewer3D/Popups/WindowManager.cs index fcfd527737..556d636fd9 100644 --- a/Source/RunActivity/Viewer3D/Popups/WindowManager.cs +++ b/Source/RunActivity/Viewer3D/Popups/WindowManager.cs @@ -172,9 +172,11 @@ public void Save(BinaryWriter outf) { foreach (var window in Windows) if (!window.DoNotDisplayWindow) + { // This if is added to not do the save in case of the out of focus window // See Source\RunActivity\Viewer3D\Popups\OutOfFocusWindow.cs window.Save(outf); + } } [CallOnThread("Render")] @@ -182,9 +184,11 @@ public void Restore(BinaryReader inf) { foreach (var window in Windows) if (!window.DoNotDisplayWindow) + { // This if is added to not do the restore in case of the out of focus window // See Source\RunActivity\Viewer3D\Popups\OutOfFocusWindow.cs window.Restore(inf); + } } [CallOnThread("Updater")]