aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2025-07-13 13:51:53 +0300
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2025-07-13 13:51:53 +0300
commite528e98507e3822edb20390d95716f0385c5b826 (patch)
tree4e1bf72c0ffc9c122ca3bce88caa8b1688350c61 /Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs
parent74a17c16836a23edc6f0c4b4027a85cf04a63a86 (diff)
downloadTango-e528e98507e3822edb20390d95716f0385c5b826.tar.gz
Tango-e528e98507e3822edb20390d95716f0385c5b826.zip
Fixed module loading issue.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs27
1 files changed, 15 insertions, 12 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs
index 14f9db927..668188901 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Modules/DefaultPPCModuleLoader.cs
@@ -16,6 +16,7 @@ using Tango.PPC.Jobs;
using System.Windows.Data;
using Tango.Core.DI;
using Tango.Settings;
+using System.Threading;
namespace Tango.PPC.UI.Modules
{
@@ -89,18 +90,18 @@ namespace Tango.PPC.UI.Modules
if (!_loaded)
{
- //Preloaded
- if (settings.UseJobsModuleV2)
- {
- LogManager.Log(String.Format("Loading module '{0}'...", nameof(JobsV2Module)));
- AllModules.Add(new JobsV2Module());
- }
- else
- {
- //LogManager.Log(String.Format("Loading module '{0}'...", nameof(JobsModule)));
- //AllModules.Add(new JobsModule());
- }
- //Preloaded
+ ////Preloaded
+ //if (settings.UseJobsModuleV2)
+ //{
+ // LogManager.Log(String.Format("Loading module '{0}'...", nameof(JobsV2Module)));
+ // AllModules.Add(new JobsV2Module());
+ //}
+ //else
+ //{
+ // //LogManager.Log(String.Format("Loading module '{0}'...", nameof(JobsModule)));
+ // //AllModules.Add(new JobsModule());
+ //}
+ ////Preloaded
AllModules.Clear();
string assemblyFolder = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
@@ -162,6 +163,8 @@ namespace Tango.PPC.UI.Modules
UserModules = AllModules.ToObservableCollection();
}
+ Thread.Sleep(1000);
+
ModulesLoaded?.Invoke(this, new EventArgs());
}