mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-17 22:43:07 +03:00
Uncommented ReloadConfiguration and updated GetAllUsers to return a dummy user, in order to unblock UI development.
This commit is contained in:
parent
dfc12d728c
commit
23a4c9af21
@@ -145,27 +145,19 @@ namespace MediaBrowser.Common.Kernel
|
||||
{
|
||||
//Configuration information for anything other than server-specific configuration will have to come via the API... -ebr
|
||||
|
||||
//// Deserialize config
|
||||
//if (!File.Exists(ConfigurationPath))
|
||||
//{
|
||||
// Configuration = new TConfigurationType();
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// Configuration = JsonSerializer.DeserializeFromFile<TConfigurationType>(ConfigurationPath);
|
||||
//}
|
||||
// Deserialize config
|
||||
if (!File.Exists(ApplicationPaths.ConfigurationPath))
|
||||
{
|
||||
Configuration = new TConfigurationType();
|
||||
}
|
||||
else
|
||||
{
|
||||
Configuration = JsonSerializer.DeserializeFromFile<TConfigurationType>(ApplicationPaths.ConfigurationPath);
|
||||
}
|
||||
|
||||
//Logger.LoggerInstance.LogSeverity = Configuration.LogSeverity;
|
||||
Logger.LoggerInstance.LogSeverity = Configuration.LogSeverity;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Saves the current application configuration to the config file
|
||||
/// </summary>
|
||||
//public void SaveConfiguration()
|
||||
//{
|
||||
// JsonSerializer.SerializeToFile(Configuration, ConfigurationPath);
|
||||
//}
|
||||
|
||||
/// <summary>
|
||||
/// Restarts the Http Server, or starts it if not currently running
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user