Skip to content

Commit cd64f07

Browse files
committed
Tools: add "Hub logs" button
1 parent 1a1d5e2 commit cd64f07

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Diff for: UnityLauncherPro/MainWindow.xaml

+3
Original file line numberDiff line numberDiff line change
@@ -548,6 +548,9 @@
548548
<Button Style="{StaticResource CustomButton}" x:Name="btnGICache" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" ToolTip="Browse Unity GI Cache folder" Click="BtnGICache_Click">
549549
<Label Content="_GI Cache" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" />
550550
</Button>
551+
<Button Style="{StaticResource CustomButton}" x:Name="btnHubLogs" Margin="10,0,0,0" BorderBrush="{x:Null}" HorizontalAlignment="Left" VerticalAlignment="Top" ToolTip="Browse Unity GI Cache folder" Click="btnHubLogs_Click">
552+
<Label Content="Hub Logs" Foreground="{Binding Path=Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type Control}}}" />
553+
</Button>
551554
</StackPanel>
552555
</Border>
553556
<!-- tools -->

Diff for: UnityLauncherPro/MainWindow.xaml.cs

+6
Original file line numberDiff line numberDiff line change
@@ -3542,6 +3542,12 @@ private void btnFetchLatestInitScript_Click(object sender, RoutedEventArgs e)
35423542
{
35433543
Tools.DownloadInitScript(initScriptFileFullPath, txtCustomInitFileURL.Text);
35443544
}
3545+
3546+
private void btnHubLogs_Click(object sender, RoutedEventArgs e)
3547+
{
3548+
Tools.OpenAppdataSpecialFolder("../Roaming/UnityHub/logs/");
3549+
}
3550+
35453551
} // class
35463552
} //namespace
35473553

0 commit comments

Comments
 (0)