Skip to content

Commit

Permalink
Fixed NRE during SettingsView unload and added MacOS file to .gitignore.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlamkins committed Feb 5, 2024
1 parent e909fb3 commit 651dee4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -430,3 +430,6 @@ fabric.properties

# Android studio 3.1+ serialized cache file
.idea/caches/build_file_checksums.ser

# MacOS Files
.DS_Store
4 changes: 3 additions & 1 deletion Blish HUD/GameServices/Settings/UI/Views/SettingsMenuView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,9 @@ private void SettingsListMenuOnItemSelected(object sender, ControlActivatedEvent
protected override void Unload() {
base.Unload();

_menuSettingsList.ItemSelected -= SettingsListMenuOnItemSelected;
if (_menuSettingsList != null) {
_menuSettingsList.ItemSelected -= SettingsListMenuOnItemSelected;
}
}

}
Expand Down

0 comments on commit 651dee4

Please sign in to comment.