aboutsummaryrefslogtreecommitdiffstats
path: root/Software
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-02-25 12:15:30 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-02-25 12:15:30 +0200
commit1d2a8fcc28a69b87f8deb3f08323c9a80e3631e2 (patch)
tree86fd7e0094b5e74e726a5ef21a0d0906bc5a29d2 /Software
parent45bedd3452d68109a17671f0b2ab97cd1ec062db (diff)
downloadTango-1d2a8fcc28a69b87f8deb3f08323c9a80e3631e2.tar.gz
Tango-1d2a8fcc28a69b87f8deb3f08323c9a80e3631e2.zip
Fixed issue with current module image when starting machine studio and multiple modules opened.
Diffstat (limited to 'Software')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
index 4d37321dd..46491c823 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
@@ -737,7 +737,7 @@ namespace Tango.MachineStudio.UI.ViewModels
/// Opens the module in a new window.
/// </summary>
/// <param name="module">The module.</param>
- private async void OpenModuleInWindow(IStudioModule module, Rect? bounds = null, WindowState? state = null)
+ private async void OpenModuleInWindow(IStudioModule module, Rect? bounds = null, WindowState? state = null, bool setHomeModule = true)
{
if (module == null) return;
@@ -745,7 +745,10 @@ namespace Tango.MachineStudio.UI.ViewModels
{
module.InNewWindow = true;
- StartModule(null);
+ if (setHomeModule)
+ {
+ StartModule(null);
+ }
await Task.Delay(1000);
@@ -943,7 +946,7 @@ namespace Tango.MachineStudio.UI.ViewModels
if (module != null && !module.InNewWindow)
{
- OpenModuleInWindow(module, item.Bounds, item.State);
+ OpenModuleInWindow(module, item.Bounds, item.State, false);
}
}