Skip to content

Commit

Permalink
Fix: Collection info text not updating if started from .osdb file
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotrekol committed Aug 30, 2020
1 parent 1642533 commit af5b3bd
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions App/Initalizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,6 @@ public void Run(string[] args)
var collectionAddRemoveForm = GuiComponentsProvider.Instance.GetClassImplementing<ICollectionAddRenameForm>();
CollectionEditor = new CollectionEditor(CollectionsManager, CollectionsManager, collectionAddRemoveForm, OsuFileIo.LoadedMaps);

if (args.Length > 0)
{
if (File.Exists(args[0]))
{
CollectionsManager.EditCollection(CollectionEditArgs.AddCollections(OsuFileIo.CollectionLoader.LoadCollection(args[0])));
}
}

var updateChecker = new UpdateChecker();
updateChecker.CheckForUpdates();
var infoTextModel = new InfoTextModel(updateChecker);
Expand All @@ -98,6 +90,14 @@ public void Run(string[] args)
SetTextData(infoTextModel);


if (args.Length > 0)
{
if (File.Exists(args[0]))
{
CollectionsManager.EditCollection(CollectionEditArgs.AddCollections(OsuFileIo.CollectionLoader.LoadCollection(args[0])));
}
}

var loginForm = GuiComponentsProvider.Instance.GetClassImplementing<ILoginFormView>();
var guiActionsHandler = new GuiActionsHandler(OsuFileIo, CollectionsManager, UserDialogs, mainForm, mainPresenter, loginForm);

Expand Down

0 comments on commit af5b3bd

Please sign in to comment.