Skip to content

Commit

Permalink
Fix SENTRY-1K6
Browse files Browse the repository at this point in the history
  • Loading branch information
theCapypara committed Oct 27, 2023
1 parent 4da3cd6 commit 78beb53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion skytemple/module/monster/controller/monster.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,8 @@ def get_view(self) -> Gtk.Widget:
def unload(self):
# We need to destroy this first.
# GTK is an enigma sometimes.
builder_get_assert(self.builder, Gtk.Widget, "export_dialog").destroy()
if self.builder is not None:
builder_get_assert(self.builder, Gtk.Widget, "export_dialog").destroy()
super().unload()
self.module = None
self.item_id = None
Expand Down

0 comments on commit 78beb53

Please sign in to comment.