Don't close any existing message box when opening a new one

This commit is contained in:
Isaiah Odhner 2023-05-17 20:16:38 -04:00
parent fd6e75abe7
commit 5a72f5efc2

View File

@ -2647,7 +2647,7 @@ class PaintApp(App[None]):
if icon_widget is None:
icon_widget = get_warning_icon()
self.close_windows("#message_box")
# self.close_windows("#message_box")
self.bell()
@ -2660,7 +2660,7 @@ class PaintApp(App[None]):
if not button.has_class("details_button"):
window.close()
window = MessageBox(
id="message_box",
# id="message_box",
title=title,
icon_widget=icon_widget,
message=message,