mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-12 10:17:22 +01:00
Use default collection as default if no active collections exist.
This commit is contained in:
parent
f5591f2a4a
commit
448a745a51
1 changed files with 1 additions and 1 deletions
|
|
@ -122,7 +122,7 @@ public partial class ModCollection
|
|||
var configChanged = !ReadActiveCollections( out var jObject );
|
||||
|
||||
// Load the default collection.
|
||||
var defaultName = jObject[ nameof( Default ) ]?.ToObject< string >() ?? Empty.Name;
|
||||
var defaultName = jObject[ nameof( Default ) ]?.ToObject< string >() ?? (configChanged ? DefaultCollection : Empty.Name);
|
||||
var defaultIdx = GetIndexForCollectionName( defaultName );
|
||||
if( defaultIdx < 0 )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue