mirror of
https://github.com/claunia/romrepomgr.git
synced 2025-12-16 19:24:51 +00:00
[Blazor] Use settings from appsettings.json to configure folders and log levels.
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
using System.Collections.Concurrent;
|
||||
using System.Diagnostics;
|
||||
using Microsoft.AspNetCore.Components;
|
||||
using Microsoft.FluentUI.AspNetCore.Components;
|
||||
using RomRepoMgr.Core.EventArgs;
|
||||
using RomRepoMgr.Core.Workers;
|
||||
using RomRepoMgr.Database.Models;
|
||||
@@ -45,7 +44,7 @@ public partial class ImportRoms : ComponentBase
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
base.OnInitialized();
|
||||
FolderPath = Path.Combine(Environment.CurrentDirectory, Consts.IncomingRomsFolder);
|
||||
FolderPath = Configuration["DataFolders:ImportRoms"] ?? "incoming";
|
||||
IsBusy = false;
|
||||
NotYetStarted = true;
|
||||
RemoveFilesChecked = false;
|
||||
|
||||
Reference in New Issue
Block a user