Skip to content

Commit

Permalink
Request Changes
Browse files Browse the repository at this point in the history
Co-Authored-By: Dragorn421 <Dragorn421@users.noreply.github.com>
  • Loading branch information
Lilaa3 and Dragorn421 committed Oct 9, 2024
1 parent 6256680 commit fb639f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion __init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from . import addon_updater_ops

from .fast64_internal.utility import prop_split, multilineLabel, prop_group_to_json, set_prop_if_in_data
from .fast64_internal.utility import prop_split, multilineLabel, set_prop_if_in_data

from .fast64_internal.repo_settings import (
draw_repo_settings,
Expand Down
3 changes: 2 additions & 1 deletion fast64_internal/utility.py
Original file line number Diff line number Diff line change
Expand Up @@ -1904,4 +1904,5 @@ def set_if_different(owner: object, prop: str, value):


def set_prop_if_in_data(owner: object, prop_name: str, data: dict, data_name: str):
set_if_different(owner, prop_name, data.get(data_name, getattr(owner, prop_name)))
if data_name in data:
set_if_different(owner, prop_name, data[data_name])

0 comments on commit fb639f1

Please sign in to comment.