Skip to content

Commit 7b722a7

Browse files
committed
use known session when showing notification
1 parent eee3595 commit 7b722a7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

shiny/bookmark/_bookmark.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,12 @@ async def do_bookmark(self) -> None:
561561
msg = f"Error bookmarking state: {e}"
562562
from ..ui._notification import notification_show
563563

564-
notification_show(msg, duration=None, type="error")
564+
notification_show(
565+
msg,
566+
duration=None,
567+
type="error",
568+
session=self._root_session,
569+
)
565570

566571

567572
class BookmarkProxy(Bookmark):

0 commit comments

Comments
 (0)