From 924fc4da5643fb24b86a1a61e5a04649e6623979 Mon Sep 17 00:00:00 2001 From: Chip Black Date: Mon, 8 Jun 2009 02:43:05 -0500 Subject: [PATCH] Fix: Focus startup WebView --- WebThing.cs | 7 +++---- plugins/DefaultPage.cs | 2 -- 2 files changed, 3 insertions(+), 6 deletions(-) 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/"); } } } -- 2.25.1