feat: add notebook to ExceptionDialog

This commit is contained in:
aclist committed 2026-08-20 14:04:23 +09:00
1 parent b153ab875e
commit b1f189bff8
1 file changed
+2 -2
+2 -2
View File
@@ -316,9 +316,9 @@ class ExceptionDialog(GenericDialog):
self, notebook: Gtk.Notebook, child: Gtk.Box | Gtk.ScrolledWindow, index: int
) -> None:
if child == self.error_details:
self.error_details.set_propagate_natural_height(True)
GLib.idle_add(self.error_details.set_propagate_natural_height, True)
else:
self.error_details.set_propagate_natural_height(False)
GLib.idle_add(self.error_details.set_propagate_natural_height, False)
def set_secondary_text(self, text: str) -> None:
self.details_buffer.set_text(text)