[smuxi: 3/10] Frontend-STFL: Implement _LocalSession and its init code



commit 680869b5f61800cdd37365d969b71b10c8d3a14b
Author: Calvin B <calvin imaginarycode com>
Date:   Sun Feb 23 14:31:31 2014 -0400

    Frontend-STFL: Implement _LocalSession and its init code

 src/Frontend-STFL/Frontend.cs |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/Frontend-STFL/Frontend.cs b/src/Frontend-STFL/Frontend.cs
index 511b283..84fa7e1 100644
--- a/src/Frontend-STFL/Frontend.cs
+++ b/src/Frontend-STFL/Frontend.cs
@@ -42,6 +42,7 @@ namespace Smuxi.Frontend.Stfl
         private static Version            _EngineVersion;
         private static MainWindow         _MainWindow;
         private static FrontendConfig     _FrontendConfig;
+        private static Session            _LocalSession;
         private static Session            _Session;
         private static UserConfig         _UserConfig;
         private static FrontendManager    _FrontendManager;
@@ -173,9 +174,10 @@ namespace Smuxi.Frontend.Stfl
         {
             Engine.Engine.Init();
             _EngineVersion = Engine.Engine.Version;
-            Session = new Engine.Session(Engine.Engine.Config,
+            _LocalSession = new Engine.Session(Engine.Engine.Config,
                                          Engine.Engine.ProtocolManagerFactory,
                                          "local");
+            Session = _LocalSession;
             Session.RegisterFrontendUI(_MainWindow.UI);
             _UserConfig = Session.UserConfig;
             ConnectEngineToGUI();


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]