X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=plugins%2FSession.cs;h=02c9771090c58ab6477e8cda6b33f79f360aebbf;hb=cd62d5cdb59322d33e32195530722bbd949ba204;hp=559f250a2d08e0c2291870bffa51c5c797ef8bf3;hpb=2740ef26aaf53ac138efffe5f7761dce67e57414;p=WebThing.git diff --git a/plugins/Session.cs b/plugins/Session.cs index 559f250..02c9771 100644 --- a/plugins/Session.cs +++ b/plugins/Session.cs @@ -12,7 +12,6 @@ public class Session : WebThingPlugin { if (Config.Arguments.Length == 0) { if (Config.Options.ContainsKey("Session")) { RestoreSession(Config.Options["Session"]); - CurrentSession = Config.Options["Session"]; } else if (Options.ContainsKey("Default")) { RestoreSession("Default"); } @@ -36,6 +35,7 @@ public class Session : WebThingPlugin { foreach (string page in pages) { wt.OpenUriTab(page); } + CurrentSession = SessionName; } else { Console.WriteLine("Could not restore session {0} because it does not exist.", SessionName); }