fixup! feat: add LiteDB => Sqlite importer

This commit is contained in:
Dean Sheather
2024-04-22 02:47:51 +10:00
parent fcdb5625f3
commit 398554fe1f
+1 -9
View File
@@ -46,7 +46,6 @@ internal class LegacyMesasgeImporterWindow : Window
}); });
// TODO: clicking does not dismiss // TODO: clicking does not dismiss
notification.Click += _ => IsOpen = true; notification.Click += _ => IsOpen = true;
notification.Dismiss += _ => WriteChatMessage();
break; break;
} }
@@ -60,20 +59,13 @@ internal class LegacyMesasgeImporterWindow : Window
Content = Content =
"Migration is not possible because the old database could not be opened. Click for more information." "Migration is not possible because the old database could not be opened. Click for more information."
}); });
// TODO: clicking does not dismiss
notification.Click += _ => IsOpen = true; notification.Click += _ => IsOpen = true;
notification.Dismiss += _ => WriteChatMessage();
break; break;
} }
} }
} }
private void WriteChatMessage()
{
// TODO: write a message to chat saying how to open the window again
// TODO: add a way of opening the window again, maybe a command or in
// database settings
}
public override void Draw() public override void Draw()
{ {
if (Importer != null) if (Importer != null)