Skip to content

Commit 1f73fdb

Browse files
committed
UI: allow manual editing of browser-path textboxes
1 parent b505a32 commit 1f73fdb

File tree

6 files changed

+19
-4
lines changed

6 files changed

+19
-4
lines changed

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/SettingsControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<StackPanel VerticalAlignment="Top" Grid.Row="1" Height="106" Margin="41,13,0,0">
3232
<Label Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_setBrowserFromPath}"
3333
Height="28" Margin="0,0,155,0" HorizontalAlignment="Left" Width="290"/>
34-
<TextBox x:Name="browserPathBox" HorizontalAlignment="Left" Height="34" TextWrapping="NoWrap" VerticalAlignment="Top" Width="311" RenderTransformOrigin="0.502,-1.668"/>
34+
<TextBox x:Name="browserPathBox" HorizontalAlignment="Left" Height="34" TextWrapping="NoWrap" VerticalAlignment="Top" Width="311" RenderTransformOrigin="0.502,-1.668" TextChanged="OnBrowserPathTextChanged" />
3535
<Button x:Name="viewButton" Content="{DynamicResource flowlauncher_plugin_browserbookmark_settings_choose}"
3636
HorizontalAlignment="Left" Margin="340,-35,-1,0" Width="100" Height="34" Click="OnChooseClick" FontSize="14" />
3737
</StackPanel>

Plugins/Flow.Launcher.Plugin.BrowserBookmark/Views/SettingsControl.xaml.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public SettingsControl(Settings settings)
1919
browserPathBox.Text = _settings.BrowserPath;
2020
NewWindowBrowser.IsChecked = _settings.OpenInNewBrowserWindow;
2121
NewTabInBrowser.IsChecked = !_settings.OpenInNewBrowserWindow;
22-
}
22+
}
2323

2424
private void OnNewBrowserWindowClick(object sender, RoutedEventArgs e)
2525
{
@@ -43,5 +43,10 @@ private void OnChooseClick(object sender, RoutedEventArgs e)
4343
_settings.BrowserPath = fileBrowserDialog.FileName;
4444
}
4545
}
46+
47+
private void OnBrowserPathTextChanged(object sender, TextChangedEventArgs e)
48+
{
49+
_settings.BrowserPath = browserPathBox.Text;
50+
}
4651
}
4752
}

Plugins/Flow.Launcher.Plugin.Url/SettingsControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<Label Content="{DynamicResource flowlauncher_plugin_url_plugin_set_tip}" Height="28" Margin="0,0,155,0"
2121
HorizontalAlignment="Left" Width="290" />
2222
<TextBox x:Name="browserPathBox" HorizontalAlignment="Left" Height="34" TextWrapping="NoWrap"
23-
VerticalAlignment="Top" Width="311" RenderTransformOrigin="0.502,-1.668" />
23+
VerticalAlignment="Top" Width="311" RenderTransformOrigin="0.502,-1.668" TextChanged="OnBrowserPathTextChanged" />
2424
<Button x:Name="viewButton" HorizontalAlignment="Left" Margin="340,-33,-1,0" Width="100"
2525
Height="32" Click="OnChooseClick" FontSize="14"
2626
Content="{DynamicResource flowlauncher_plugin_url_plugin_choose}" />

Plugins/Flow.Launcher.Plugin.Url/SettingsControl.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,10 @@ private void OnNewTabClick(object sender, RoutedEventArgs e)
5757
{
5858
_settings.OpenInNewBrowserWindow = false;
5959
}
60+
61+
private void OnBrowserPathTextChanged(object sender, TextChangedEventArgs e)
62+
{
63+
_settings.BrowserPath = browserPathBox.Text;
64+
}
6065
}
6166
}

Plugins/Flow.Launcher.Plugin.WebSearch/SettingsControl.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
</StackPanel>
4141
<StackPanel Grid.Row="2" HorizontalAlignment="Left" Margin="0 3 0 0">
4242
<Label Content="Set browser from path:" Margin="0 0 350 0" HorizontalAlignment="Left" Width="140"/>
43-
<TextBox x:Name="browserPathBox" HorizontalAlignment="Left" Margin="160,-22,0,0"
43+
<TextBox x:Name="browserPathBox" HorizontalAlignment="Left" Margin="160,-22,0,0" TextChanged="OnBrowserPathTextChanged"
4444
Width="214" Style="{StaticResource BrowserPathBoxStyle}"/>
4545
<Button x:Name="viewButton" HorizontalAlignment="Left" Margin="400,-30,0,0"
4646
Click="OnChooseClick" FontSize="13" Content="Choose" Width="80"/>

Plugins/Flow.Launcher.Plugin.WebSearch/SettingsControl.xaml.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,10 @@ private void OnChooseClick(object sender, RoutedEventArgs e)
8383
_settings.BrowserPath = fileBrowserDialog.FileName;
8484
}
8585
}
86+
87+
private void OnBrowserPathTextChanged(object sender, TextChangedEventArgs e)
88+
{
89+
_settings.BrowserPath = browserPathBox.Text;
90+
}
8691
}
8792
}

0 commit comments

Comments
 (0)