Skip to content

Commit

Permalink
Allow everything in the BrowserWindow UI
Browse files Browse the repository at this point in the history
  • Loading branch information
wxnnvs committed Sep 25, 2024
1 parent 98e8089 commit 610ef59
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions SafeExamBrowser.UserInterface.Desktop/Windows/BrowserWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -525,20 +525,20 @@ private void BrowserControlHost_GotKeyboardFocus(object sender, KeyboardFocusCha

private void ApplySettings()
{
BackwardButton.IsEnabled = WindowSettings.AllowBackwardNavigation;
BackwardButton.Visibility = WindowSettings.AllowBackwardNavigation ? Visibility.Visible : Visibility.Collapsed;
DeveloperConsoleMenuItem.Visibility = WindowSettings.AllowDeveloperConsole ? Visibility.Visible : Visibility.Collapsed;
FindMenuItem.Visibility = settings.AllowFind ? Visibility.Visible : Visibility.Collapsed;
ForwardButton.IsEnabled = WindowSettings.AllowForwardNavigation;
ForwardButton.Visibility = WindowSettings.AllowForwardNavigation ? Visibility.Visible : Visibility.Collapsed;
HomeButton.IsEnabled = WindowSettings.ShowHomeButton;
HomeButton.Visibility = WindowSettings.ShowHomeButton ? Visibility.Visible : Visibility.Collapsed;
MenuButton.IsEnabled = settings.AllowPageZoom || WindowSettings.AllowDeveloperConsole;
ReloadButton.IsEnabled = WindowSettings.AllowReloading;
ReloadButton.Visibility = WindowSettings.ShowReloadButton ? Visibility.Visible : Visibility.Collapsed;
Toolbar.Visibility = WindowSettings.ShowToolbar ? Visibility.Visible : Visibility.Collapsed;
UrlTextBox.Visibility = WindowSettings.AllowAddressBar ? Visibility.Visible : Visibility.Hidden;
ZoomMenuItem.Visibility = settings.AllowPageZoom ? Visibility.Visible : Visibility.Collapsed;
BackwardButton.IsEnabled = true;
BackwardButton.Visibility = Visibility.Visible;
DeveloperConsoleMenuItem.Visibility = Visibility.Visible;
FindMenuItem.Visibility = Visibility.Visible;
ForwardButton.IsEnabled = true;
ForwardButton.Visibility = Visibility.Visible;
HomeButton.IsEnabled = true;
HomeButton.Visibility = Visibility.Visible;
MenuButton.IsEnabled = true;
ReloadButton.IsEnabled = true;
ReloadButton.Visibility = Visibility.Visible;
Toolbar.Visibility = Visibility.Visible;
UrlTextBox.Visibility = Visibility.Visible;
ZoomMenuItem.Visibility = Visibility.Visible;
}

private void InitializeBounds()
Expand Down

0 comments on commit 610ef59

Please sign in to comment.