Plugins: Adding an enabled property

This commit is contained in:
Zoe Roux
2021-08-13 12:01:07 +02:00
parent 2e0c96b228
commit b67e0a629e
6 changed files with 36 additions and 16 deletions
+3
View File
@@ -23,6 +23,9 @@ namespace Kyoo.Postgresql
/// <inheritdoc />
public string Description => "A database context for postgresql.";
/// <inheritdoc />
public bool Enabled => _configuration.GetSelectedDatabase() == "postgres";
/// <summary>
/// The configuration to use. The database connection string is pulled from it.
/// </summary>