aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-03-12 15:26:36 +0200
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-03-12 15:26:36 +0200
commitdb5c4418d90840ec033a8eacc948419b72755857 (patch)
tree70be526f87898e133718b315bbf7b3b02e9d35c0 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
parent64326bd1599ef3855212c737ddfaeb6756337e2d (diff)
downloadTango-db5c4418d90840ec033a8eacc948419b72755857.tar.gz
Tango-db5c4418d90840ec033a8eacc948419b72755857.zip
Machine Studio v4.0.10
PPC v1.0.6
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs32
1 files changed, 18 insertions, 14 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 986bf483f..3f69ff771 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs
@@ -9,6 +9,7 @@ using System.Threading;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
+using System.Windows.Input;
using System.Windows.Media;
using Tango.BL;
using Tango.BL.Builders;
@@ -467,7 +468,7 @@ namespace Tango.MachineStudio.UI.ViewModels
HostName = Environment.MachineName,
Password = login.Password,
UserGuid = AuthenticationProvider.CurrentUser.Guid,
- Intent = PMR.Integration.ExternalBridgeLoginIntent.Override,
+ Intent = login.Intent,
});
ApplicationManager.SetConnectedMachine(x.SelectedMachine);
@@ -892,25 +893,28 @@ namespace Tango.MachineStudio.UI.ViewModels
{
if (!IsApplicationReady)
{
- var settings = SettingsManager.Default.GetOrCreate<MachineStudioSettings>();
-
- foreach (var item in settings.StudioModulesBounds)
+ if (!Keyboard.IsKeyDown(Key.LeftCtrl))
{
- var module = StudioModuleLoader.AllModules.SingleOrDefault(x => x.Name == item.Name);
+ var settings = SettingsManager.Default.GetOrCreate<MachineStudioSettings>();
- if (module != null && !module.InNewWindow)
+ foreach (var item in settings.StudioModulesBounds)
{
- OpenModuleInWindow(module, item.Bounds, item.State);
- }
- }
+ var module = StudioModuleLoader.AllModules.SingleOrDefault(x => x.Name == item.Name);
- if (settings.LastMainModuleName != null)
- {
- var m = StudioModuleLoader.UserModules.SingleOrDefault(x => x.Name == settings.LastMainModuleName);
+ if (module != null && !module.InNewWindow)
+ {
+ OpenModuleInWindow(module, item.Bounds, item.State);
+ }
+ }
- if (m != null)
+ if (settings.LastMainModuleName != null)
{
- StartModule(m);
+ var m = StudioModuleLoader.UserModules.SingleOrDefault(x => x.Name == settings.LastMainModuleName);
+
+ if (m != null)
+ {
+ StartModule(m);
+ }
}
}