[chore:] removed font-path support (since it was never implemented)

This commit is contained in:
2026-06-09 08:26:32 +02:00
parent 097e0c175b
commit 9bbda4e2b9
2 changed files with 19 additions and 19 deletions
+17 -17
View File
@@ -439,23 +439,23 @@
</StackPanel> </StackPanel>
</StackPanel> </StackPanel>
</Grid> </Grid>
<Grid ColumnDefinitions="400,*"> <!-- <Grid ColumnDefinitions="400,*"> -->
<Label Grid.Column="0">Font-Pfad</Label> <!-- <Label Grid.Column="0">Font-Pfad</Label> -->
<StackPanel Grid.Column="1" Orientation="Vertical" Spacing="5"> <!-- <StackPanel Grid.Column="1" Orientation="Vertical" Spacing="5"> -->
<StackPanel Orientation="Horizontal" Spacing="5"> <!-- <StackPanel Orientation="Horizontal" Spacing="5"> -->
<TextBox x:Name="TbFontPath" HorizontalAlignment="Stretch" TextChanged="Tb_OnTextChanged" <!-- <TextBox x:Name="TbFontPath" HorizontalAlignment="Stretch" TextChanged="Tb_OnTextChanged" -->
Watermark="[App-Direcotry]/assets/fonts/" /> <!-- Watermark="[App-Direcotry]/assets/fonts/" /> -->
<Button IsEnabled="True" x:Name="BtnFontPath" HorizontalAlignment="Right"> <!-- <Button IsEnabled="True" x:Name="BtnFontPath" HorizontalAlignment="Right"> -->
<Button.Content> <!-- <Button.Content> -->
<StackPanel Orientation="Horizontal"> <!-- <StackPanel Orientation="Horizontal"> -->
<LucideIcon Kind="Folder" Width="16" Height="16" Size="16" /> <!-- <LucideIcon Kind="Folder" Width="16" Height="16" Size="16" /> -->
<Label Content="Öffnen..." VerticalContentAlignment="Center" /> <!-- <Label Content="Öffnen..." VerticalContentAlignment="Center" /> -->
</StackPanel> <!-- </StackPanel> -->
</Button.Content> <!-- </Button.Content> -->
</Button> <!-- </Button> -->
</StackPanel> <!-- </StackPanel> -->
</StackPanel> <!-- </StackPanel> -->
</Grid> <!-- </Grid> -->
</StackPanel> </StackPanel>
</TabItem> </TabItem>
<TabItem> <TabItem>
+2 -2
View File
@@ -73,7 +73,7 @@ public partial class MainWindow : Window
try try
{ {
BtnWikiPath.Click += BtnWikiPath_Click; BtnWikiPath.Click += BtnWikiPath_Click;
BtnFontPath.Click += BtnFontPath_Click; //BtnFontPath.Click += BtnFontPath_Click;
BtnConfigPath.Click += BtnConfigPath_Click; BtnConfigPath.Click += BtnConfigPath_Click;
} }
catch (Exception ex) catch (Exception ex)
@@ -404,7 +404,7 @@ public partial class MainWindow : Window
if (folder == null || folder.Count == 0) return; if (folder == null || folder.Count == 0) return;
var chosen = PathUtilities.NormalizeFileSystemPath(folder[0].Path); var chosen = PathUtilities.NormalizeFileSystemPath(folder[0].Path);
TbFontPath.Text = chosen; //TbFontPath.Text = chosen;
Global._instance.font_path = chosen; Global._instance.font_path = chosen;
Global.Save(); Global.Save();
} }