@@ -27,16 +27,16 @@ public partial class HyperMcView : Form, IViewHost
2727
2828 private readonly IForgeClient _forgeClient ;
2929 private readonly IServiceProvider _provider ;
30- private readonly IFileManager _fileUesr ;
30+ private readonly IFileManager _fileManager ;
3131 private readonly IUserSettings _settings ;
3232
33- public HyperMcView ( IForgeClient forgeClient , IServiceProvider provider , IFileManager fileUesr , IUserSettings settings )
33+ public HyperMcView ( IForgeClient forgeClient , IServiceProvider provider , IFileManager fileManager , IUserSettings settings )
3434 {
3535 InitializeComponent ( ) ;
3636
3737 _forgeClient = forgeClient ;
3838 _provider = provider ;
39- _fileUesr = fileUesr ;
39+ _fileManager = fileManager ;
4040 _settings = settings ;
4141 _modpacks = new ( ) ;
4242 _modpacks . CollectionChanged += ModpacksUpdated ;
@@ -45,7 +45,7 @@ public HyperMcView(IForgeClient forgeClient, IServiceProvider provider, IFileMan
4545 private async void HyperMcView_Load ( object sender , EventArgs e )
4646 {
4747 SetView ( new ControlView ( pnl_MainArea ) ) ;
48- var mods = await _fileUesr . ReadFile < ModpackData [ ] > ( $@ "{ _settings . ModPacksPath } \packs.json") ;
48+ var mods = await _fileManager . ReadFile < ModpackData [ ] > ( $@ "{ _settings . ModPacksPath } \packs.json") ;
4949 if ( mods != null )
5050 {
5151 foreach ( var mod in mods )
@@ -126,7 +126,7 @@ private async void ModpacksUpdated(object? sender, NotifyCollectionChangedEventA
126126 }
127127
128128 SortModpacks ( ) ;
129- await _fileUesr . WriteToFile ( _modpacks . ToArray ( ) , $@ "{ _settings . ModPacksPath } \packs.json") ;
129+ await _fileManager . WriteToFile ( _modpacks . ToArray ( ) , $@ "{ _settings . ModPacksPath } \packs.json") ;
130130 }
131131
132132 private ModpackBox CreateModpackBox ( ModpackData data )
0 commit comments