diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-25 12:15:30 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-02-25 12:15:30 +0200 |
| commit | 1d2a8fcc28a69b87f8deb3f08323c9a80e3631e2 (patch) | |
| tree | 86fd7e0094b5e74e726a5ef21a0d0906bc5a29d2 /Software | |
| parent | 45bedd3452d68109a17671f0b2ab97cd1ec062db (diff) | |
| download | Tango-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.cs | 9 |
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); } } |
