mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-23 08:17:59 +01:00
Make identically named options selectable, fix crash after deleting options.
This commit is contained in:
parent
f15c20a999
commit
e9b12da97e
3 changed files with 20 additions and 5 deletions
|
|
@ -70,7 +70,7 @@ public class ModSettings
|
|||
var config = Settings[ groupIdx ];
|
||||
Settings[ groupIdx ] = group.Type switch
|
||||
{
|
||||
SelectType.Single => config >= optionIdx ? Math.Max( 0, config - 1 ) : config,
|
||||
SelectType.Single => config >= optionIdx ? (config > 1 ? config - 1 : 0) : config,
|
||||
SelectType.Multi => RemoveBit( config, optionIdx ),
|
||||
_ => config,
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue