File tree 3 files changed +12
-4
lines changed
3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ game specific things:
19
19
20
20
# Changelog
21
21
22
+ ### v1.8
23
+ - Fixed that nested and grouped options' children would not get their ` .mod ` attribute set.
24
+
22
25
### v1.7
23
26
- The "Update Available" notification should now immediately go away upon updating, instead of
24
27
waiting a day for the next check.
Original file line number Diff line number Diff line change 8
8
from .dot_sdkmod import open_in_mod_dir
9
9
10
10
# Need to define a few things first to avoid circular imports
11
- __version_info__ : tuple [int , int ] = (1 , 7 )
11
+ __version_info__ : tuple [int , int ] = (1 , 8 )
12
12
__version__ : str = f"{ __version_info__ [0 ]} .{ __version_info__ [1 ]} "
13
13
__author__ : str = "bl-sdk"
14
14
Original file line number Diff line number Diff line change @@ -200,11 +200,16 @@ def __post_init__(self) -> None: # noqa: C901 - difficult to split up
200
200
case _:
201
201
pass
202
202
203
- for option in self .options :
204
- option .mod = self
205
-
206
203
self .enabling_locked = Game .get_current () not in self .supported_games
207
204
205
+ def associate_options (options : Sequence [BaseOption ]) -> None :
206
+ for option in options :
207
+ if isinstance (option , GroupedOption | NestedOption ):
208
+ associate_options (option .children )
209
+ option .mod = self
210
+
211
+ associate_options (self .options )
212
+
208
213
def enable (self ) -> None :
209
214
"""Called to enable the mod."""
210
215
if self .enabling_locked :
You can’t perform that action at this time.
0 commit comments