From: Chip Black Date: Mon, 8 Jun 2009 07:43:05 +0000 (-0500) Subject: Fix: Focus startup WebView X-Git-Url: http://git.bytex64.net/?a=commitdiff_plain;ds=sidebyside;h=924fc4da5643fb24b86a1a61e5a04649e6623979;hp=84890340eccbe66e303780a992fe152356974394;p=WebThing.git Fix: Focus startup WebView --- diff --git a/WebThing.cs b/WebThing.cs index 9429099..fd2eb99 100644 --- a/WebThing.cs +++ b/WebThing.cs @@ -97,10 +97,9 @@ 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(); } diff --git a/plugins/DefaultPage.cs b/plugins/DefaultPage.cs index 5ec5bdd..3e99bb1 100644 --- a/plugins/DefaultPage.cs +++ b/plugins/DefaultPage.cs @@ -11,8 +11,6 @@ public class DefaultPage : WebThingPlugin { string[] pages = Regex.Split(Config.Options["DefaultPage"], @"\s+"); foreach (string page in pages) wt.OpenUriTab(page); - } else { - wt.OpenUriTab("http://dominionofawesome.com/"); } } }