[fix:] adding ".md" if not added by user (wiki)

This commit is contained in:
2026-04-27 08:49:53 +02:00
parent 93771dd110
commit 16982c3d95
+4
View File
@@ -991,6 +991,10 @@ public partial class MainWindow : Window
private async void BtnWikiAddFile_OnClick(object? sender, RoutedEventArgs e)
{
var result = await NamingWindow.Show(this);
if (!result.EndsWith(".md")) result += ".md";
if (!Directory.Exists(Global._instance.wiki_storage_path))
Directory.CreateDirectory(Global._instance.wiki_storage_path);
if (result != null)
try
{