Skip to content

Commit 7e57226

Browse files
committed
hide git branch text on streamermode
1 parent c43d1c2 commit 7e57226

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: UnityLauncherPro/MainWindow.xaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
<!--<DataGridTextColumn CellStyle="{StaticResource NoFocusCellStyle}" Binding="{Binding Modified, StringFormat=\{0:dd/MM/yyyy HH:mm:ss\}}" ClipboardContentBinding="{x:Null}" Header="Modified" IsReadOnly="True" Width="120"/>-->
116116
<DataGridTextColumn Binding="{Binding Modified, Converter={StaticResource lastModifiedConverter}}" CellStyle="{StaticResource NoFocusCellStyle}" ClipboardContentBinding="{x:Null}" Header="Modified" IsReadOnly="True" Width="120"/>
117117
<DataGridTextColumn Binding="{Binding Arguments}" CellStyle="{StaticResource NoFocusCellStyle}" ClipboardContentBinding="{x:Null}" Header="Arguments" IsReadOnly="False" Width="100"/>
118-
<DataGridTextColumn Binding="{Binding GITBranch}" CellStyle="{StaticResource NoFocusCellStyle}" ClipboardContentBinding="{x:Null}" Header="Branch" IsReadOnly="True" Width="60"/>
118+
<DataGridTextColumn x:Name="txtColumnGitBranch" Binding="{Binding GITBranch}" CellStyle="{StaticResource NoFocusCellStyle}" ClipboardContentBinding="{x:Null}" Header="Branch" IsReadOnly="True" Width="60"/>
119119
<!--TODO platform as dropdown?-->
120120
<!--<DataGridTextColumn CellStyle="{StaticResource NoFocusCellStyle}" Binding="{Binding TargetPlatform}" ClipboardContentBinding="{x:Null}" Header="Platform" IsReadOnly="True" Width="100"/>-->
121121
<!--<DataGridComboBoxColumn x:Name="cmbPlatform" CellStyle="{StaticResource NoFocusCellStyle}" SelectedItemBinding="{Binding TargetPlatform, NotifyOnSourceUpdated=True, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}" ClipboardContentBinding="{x:Null}" Header="Platform" IsReadOnly="True" Width="100"/>-->

Diff for: UnityLauncherPro/MainWindow.xaml.cs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1852,8 +1852,6 @@ private void ChkAskNameForQuickProject_Checked(object sender, RoutedEventArgs e)
18521852
bool isInitializing = true; // used to avoid doing things while still starting up
18531853
private void ChkStreamerMode_Checked(object sender, RoutedEventArgs e)
18541854
{
1855-
// TODO could add "(streamer mode)" text in statusbar?
1856-
18571855
var isChecked = (bool)((CheckBox)sender).IsChecked;
18581856

18591857
Properties.Settings.Default.streamerMode = isChecked;
@@ -1864,6 +1862,7 @@ private void ChkStreamerMode_Checked(object sender, RoutedEventArgs e)
18641862
cellStyle.Setters.Add(new Setter(FontSizeProperty, 1.0));
18651863
txtColumnTitle.CellStyle = isChecked ? cellStyle : null;
18661864
txtColumnName.CellStyle = isChecked ? cellStyle : null;
1865+
txtColumnGitBranch.CellStyle = isChecked ? cellStyle : null;
18671866

18681867
Style txtBoxStyle = new Style(typeof(TextBox));
18691868
txtBoxStyle.Setters.Add(new Setter(FontSizeProperty, 1.0));

0 commit comments

Comments
 (0)