-Komplette view überarbeitet für Thunderstore mit mods suche, vorschau, markdown (readme) etc
todo: wenn neuer mod aufgerufen wird, soll die zurückfunktion deaktviert sein oder so das sie den mod mit aktualisiert zu dem der davor ausgewählt war (:
This commit is contained in:
@@ -71,13 +71,31 @@ namespace Valheim_Dashboard.ViewModels
|
||||
});
|
||||
|
||||
// Beim Erstellen direkt FTP-Verzeichnis laden
|
||||
LoadFtpCommand.Execute().Subscribe();
|
||||
|
||||
//LoadFtpCommand.Execute().Subscribe();
|
||||
Files.Add(new FtpItem { Name = "TestFile.txt", IsDirectory = false });
|
||||
|
||||
}
|
||||
|
||||
public void Init(FtpClient ftpClient, string? startPath = null)
|
||||
{
|
||||
_ftpClient = ftpClient ?? throw new ArgumentNullException(nameof(ftpClient));
|
||||
if (!string.IsNullOrEmpty(startPath))
|
||||
CurrentPath = startPath;
|
||||
|
||||
// Erst hier laden
|
||||
_ = LoadFtpDirectory();
|
||||
}
|
||||
|
||||
private async Task LoadFtpDirectory()
|
||||
{
|
||||
if (_ftpClient == null)
|
||||
{
|
||||
Debug.WriteLine("⚠️ FTP-Client ist noch nicht verbunden");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
try
|
||||
{
|
||||
// Verwende die neue Methode, um detaillierte Informationen zu erhalten
|
||||
|
||||
Reference in New Issue
Block a user