Skip to content

Commit

Permalink
Fix: 實作I18n後,browser選擇(不使用)後無回應
Browse files Browse the repository at this point in the history
  • Loading branch information
jim60105 committed May 25, 2022
1 parent 1b61c7b commit 00e14d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion Form1.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Serilog;
using Serilog.Events;
using System.ComponentModel;
using System.Diagnostics;
using System.Globalization;
using System.Text.RegularExpressions;
Expand Down Expand Up @@ -93,7 +94,8 @@ private void button_start_Click(object sender, EventArgs e)
Settings.Default.Format = format;

string browser = comboBox_browser.Text;
if (string.IsNullOrEmpty(browser) || browser == "( Disabled )")
if (string.IsNullOrEmpty(browser)
|| browser == new ComponentResourceManager(typeof(Form1)).GetString("comboBox_browser.Items"))
{
browser = "";
}
Expand Down
4 changes: 2 additions & 2 deletions Properties/PublishProfiles/ClickOnceProfile.pubxml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project>
<PropertyGroup>
<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>1.7.0.1</ApplicationVersion>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.7.1.0</ApplicationVersion>
<BootstrapperEnabled>True</BootstrapperEnabled>
<Configuration>Release</Configuration>
<CreateDesktopShortcut>True</CreateDesktopShortcut>
Expand Down

0 comments on commit 00e14d7

Please sign in to comment.