Added Method GetConnector to TaskManager that returns Connector with given Name.
Removed Method NewKomga unused
This commit is contained in:
parent
538cfec619
commit
72bd1c56a8
@ -157,10 +157,12 @@ public class TaskManager
|
|||||||
return this._chapterCollection.Keys.ToArray();
|
return this._chapterCollection.Keys.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void NewKomga(Komga? pKomga)
|
public Connector GetConnector(string connectorName)
|
||||||
{
|
{
|
||||||
this.komga = pKomga;
|
Connector? ret = this._connectors.FirstOrDefault(connector => connector.name == connectorName);
|
||||||
this.ExportData(Directory.GetCurrentDirectory());
|
if (ret is null)
|
||||||
|
throw new Exception($"Connector {connectorName} is not an available Connector.");
|
||||||
|
return (Connector)ret!;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user