[Blazor] Use settings from appsettings.json to configure folders and log levels.

This commit is contained in:
2025-07-27 18:19:01 +01:00
parent b62f495824
commit ab804239bb
9 changed files with 130 additions and 102 deletions

View File

@@ -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;