[fix:] adding ".md" if not added by user (wiki)
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user