Deterministically order plugins, create cross-plugin call mechanism
[WebThing.git] / WebThing.cs
index 9429099..08cfb1b 100644 (file)
@@ -97,16 +97,15 @@ namespace bytex64.WebThing {
 
             // Create a new, default WebThingView if one has not already
             // been created.
-            if (Tabs.NPages == 0) {
-                WebThingView default_tab = NewTab();
-                default_tab.WebView.GrabFocus();
-            }
+            if (Tabs.NPages == 0)
+                OpenUriTab("http://dominionofawesome.com/");
+            WebView.GrabFocus();
 
             Application.Run();
         }
 
         public void Quit() {
-            // TODO: Create a way of shutting down plugins
+            Plugins.Deinit();
             Application.Quit();
         }