[chore:] tiny improvements for ux

This commit is contained in:
2026-03-18 14:33:45 +01:00
parent ce75d8aa0b
commit 410055c9f2

View File

@@ -11,6 +11,7 @@ namespace spplus;
public partial class MainWindow : Window public partial class MainWindow : Window
{ {
public static MainWindow Instance { get; set; } public static MainWindow Instance { get; set; }
public static string ApplicationVersion = "v1.1.17";
public MainWindow() public MainWindow()
{ {
InitializeComponent(); InitializeComponent();
@@ -40,7 +41,7 @@ public partial class MainWindow : Window
Process.Start(new ProcessStartInfo Process.Start(new ProcessStartInfo
{ {
FileName = "https://git.mypapercloud.de/fierke/spplus/wiki", FileName = "https://git.mypapercloud.de/fierke/spplus/wiki",
UseShellExecute = true // Wichtig für Plattformübergreifendes Öffnen UseShellExecute = true
}); });
} }
catch (Exception ex) catch (Exception ex)
@@ -56,7 +57,7 @@ public partial class MainWindow : Window
Process.Start(new ProcessStartInfo Process.Start(new ProcessStartInfo
{ {
FileName = "https://git.mypapercloud.de/fierke/spplus", FileName = "https://git.mypapercloud.de/fierke/spplus",
UseShellExecute = true // Wichtig für Plattformübergreifendes Öffnen UseShellExecute = true
}); });
} }
catch (Exception ex) catch (Exception ex)
@@ -75,7 +76,7 @@ public partial class MainWindow : Window
Grid g = new(); Grid g = new();
TextBlock tb = new() TextBlock tb = new()
{ {
Text = "spplus v1.0.0\n(c)2026 MyPapertown, Elias Fierke" Text = $"spplus {MainWindow.ApplicationVersion}\n(c)2026 MyPapertown, Elias Fierke"
}; };
g.Children.Add(tb); g.Children.Add(tb);
w.Content = g; w.Content = g;
@@ -152,10 +153,10 @@ public partial class MainWindow : Window
private void BtnCraftCourses_OnClick(object? sender, RoutedEventArgs e) private void BtnCraftCourses_OnClick(object? sender, RoutedEventArgs e)
{ {
// Craft courses here / call course-crafter
CourseCrafter.Craft(); CourseCrafter.Craft();
RefreshResultView(); RefreshResultView();
TbiResults.Focus(); TclMainView.SelectedIndex = 2;
//TbiResults.Focus();
} }
private void RefreshResultView() private void RefreshResultView()