Upload via GUI (186 Dateien)

This commit is contained in:
2026-10-04 14:48:53 +00:00
parent c0b552ef39
commit 8efd5bc497
25 changed files with 2344 additions and 1015 deletions
+12 -2
View File
@@ -314,7 +314,9 @@ public partial class MainWindow : Window
SetEmpty(cat.Glyph, "Noch leer", $"Ziehe Icons vom Desktop hierher oder auf „{cat.Name}“ in der Seitenleiste.");
}
items = items.OrderBy(i => !Directory.Exists(i.Path))
items = (S.MainSort == "Häufig"
? items.OrderBy(i => !Directory.Exists(i.Path)).ThenByDescending(i => Usage.Score(i.Path))
: items.OrderBy(i => !Directory.Exists(i.Path)))
.ThenBy(i => i.Name, StringComparer.CurrentCultureIgnoreCase).ToList();
var px = IconPixels;
foreach (var item in items) IconLoader.Load(item, px);
@@ -456,6 +458,13 @@ public partial class MainWindow : Window
if (S.View == mode) mi.InputGestureText = "✓";
ViewMenu.Items.Add(mi);
}
ViewMenu.Items.Add(new Separator());
foreach (var (sort, label) in new[] { ("Name", "Nach Name sortieren"), ("Häufig", "Meistgenutzt zuerst") })
{
var mi = MenuItem(label, "", () => { S.MainSort = sort; S.Save(); Refresh(); }, bold: S.MainSort == sort);
if (S.MainSort == sort) mi.InputGestureText = "✓";
ViewMenu.Items.Add(mi);
}
ViewMenu.PlacementTarget = ViewButton;
ViewMenu.IsOpen = true;
}
@@ -803,7 +812,7 @@ public partial class MainWindow : Window
private void Open(string path)
{
try { Process.Start(new ProcessStartInfo(path) { UseShellExecute = true }); }
try { Usage.Start(path); }
catch (Exception ex) { Error("Öffnen fehlgeschlagen", $"„{Path.GetFileName(path)}“ konnte nicht geöffnet werden.\n\n{ex.Message}"); }
}
@@ -1208,6 +1217,7 @@ public partial class MainWindow : Window
DeadShortcutsToggle.IsChecked = S.RemoveDeadShortcuts;
LoadFenceSettings();
LoadDesktopSettings();
LoadQuickSearchSettings();
AutoRemoveToggle.IsChecked = S.AutoSortRemoveFromDesktop;
RulesList.ItemsSource = null;
RulesList.ItemsSource = S.Rules;