Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 16982c3d95 | |||
| 93771dd110 | |||
| 3e14731429 |
@@ -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
|
||||
{
|
||||
|
||||
@@ -37,7 +37,8 @@ public class CombineAddresses
|
||||
/// <returns></returns>
|
||||
public bool CompareAddresses(KasPerson first, KasPerson second, bool only_refsid = false)
|
||||
{
|
||||
if (first.refsid == second.refsid) return true;
|
||||
// A refsid of 0 means "missing", so it must not collapse unrelated entries.
|
||||
if (first.refsid != 0 && second.refsid != 0 && first.refsid == second.refsid) return true;
|
||||
if (!only_refsid)
|
||||
if (first.name == second.name &&
|
||||
first.anrede == second.anrede &&
|
||||
|
||||
Reference in New Issue
Block a user