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();
|
||||
}
|
||||
|
||||
public void NewKomga(Komga? pKomga)
|
||||
public Connector GetConnector(string connectorName)
|
||||
{
|
||||
this.komga = pKomga;
|
||||
this.ExportData(Directory.GetCurrentDirectory());
|
||||
Connector? ret = this._connectors.FirstOrDefault(connector => connector.name == connectorName);
|
||||
if (ret is null)
|
||||
throw new Exception($"Connector {connectorName} is not an available Connector.");
|
||||
return (Connector)ret!;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
Loading…
Reference in New Issue
Block a user