Skip to content

Commit

Permalink
Remove Maximize Functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
WardenGnaw committed Dec 20, 2023
1 parent 731f4ac commit 8a3a8b5
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 39 deletions.
13 changes: 0 additions & 13 deletions src/SSHDebugPS/UI/ContainerPickerDialogWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -470,19 +470,6 @@
Orientation="Horizontal"
HorizontalAlignment="Right"
WindowChrome.IsHitTestVisibleInChrome="true">
<Button Style="{StaticResource TitleBarButtonStyle}" Click="MaximizeOrRestoreButton_Click">
<StackPanel>
<!-- Maximize -->
<Path Visibility="{Binding IsMaximized, Converter={StaticResource InverseBoolToVisibilityConverter}, Mode=OneWay}"
Data="F1M12,12L4,12 4,4 12,4z M3,13L13,13 13,3 3,3z"
Style="{StaticResource TitleBarButtonPathStyle}" />

<!-- Restore -->
<Path Visibility="{Binding IsMaximized, Converter={StaticResource BoolToVisibilityConverter}, FallbackValue={x:Static Visibility.Collapsed}, Mode=OneWay}"
Data="F1M11.999,10.002L10.998,10.002 10.998,5.002 5.998,5.002 5.998,4.001 11.999,4.001z M10.002,11.999L4.001,11.999 4.001,5.998 10.002,5.998z M5.002,3L5.002,5.002 3,5.002 3,13 10.998,13 10.998,10.998 13,10.998 13,3z"
Style="{StaticResource TitleBarButtonPathStyle}" />
</StackPanel>
</Button>

<Button Style="{DynamicResource TitleBarButtonStyle}" Click="CloseButton_Click">
<Path Data="F1M8.583,8L13,12.424 12.424,13 8,8.583 3.576,13 3,12.424 7.417,8 3,3.576 3.576,3 8,7.417 12.424,3 13,3.576z"
Expand Down
12 changes: 0 additions & 12 deletions src/SSHDebugPS/UI/ContainerPickerDialogWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public ContainerPickerDialogWindow(bool supportSSHConnections)
_model = new ContainerPickerViewModel(supportSSHConnections);
this.DataContext = _model;
this.Loaded += OnWindowLoaded;
StateChanged += OnWindowStateChanged;

InitializeComponent();
}
Expand Down Expand Up @@ -62,17 +61,6 @@ private void OnWindowLoaded(object sender, RoutedEventArgs e)
}
e.Handled = true;
}

private void OnWindowStateChanged(object sender, EventArgs e)
{
_model.IsMaximized = WindowState is WindowState.Maximized;
}

private void MaximizeOrRestoreButton_Click(object sender, RoutedEventArgs e)
{
WindowState = _model.IsMaximized ? WindowState.Normal : WindowState.Maximized;
}

private void CloseButton_Click(object sender, RoutedEventArgs e)
{
CloseWindow();
Expand Down
14 changes: 0 additions & 14 deletions src/SSHDebugPS/UI/ViewModels/ContainerPickerViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -296,20 +296,6 @@ private bool IsLibLinuxAvailable()
}
}

private bool _isMaximized = false;
public bool IsMaximized
{
get
{
return _isMaximized;
}
set
{
_isMaximized = value;
OnPropertyChanged(nameof(IsMaximized));
}
}

// Default is to Support SSH Connections
private bool _supportSSHConnections = true;
public bool SupportSSHConnections
Expand Down

0 comments on commit 8a3a8b5

Please sign in to comment.