Skip to content

Commit 833ae5c

Browse files
rsashankneiljp
authored andcommitted
refactor: core/model: Rename popup_with_message.
Added 'show' prefix to ensure consistency with other popup methods. Renamed popup_with_message to show_popup_with_message.
1 parent dda066a commit 833ae5c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

zulipterminal/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def show_stream_members(self, stream_id: int) -> None:
299299
stream_members_view = StreamMembersView(self, stream_id)
300300
self.show_pop_up(stream_members_view, "area:stream")
301301

302-
def popup_with_message(self, text: str, width: int) -> None:
302+
def show_popup_with_message(self, text: str, width: int) -> None:
303303
self.show_pop_up(NoticeView(self, text, width, "NOTICE"), "area:error")
304304

305305
def show_exception_popup(self, text: str, width: int, traceback: str) -> None:

zulipterminal/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1716,7 +1716,7 @@ def _handle_message_event(self, event: Event) -> None:
17161716
notice = notice_template.format(
17171717
failed_command, primary_display_key_for_command("EXIT_POPUP")
17181718
)
1719-
self.controller.popup_with_message(notice, width=50)
1719+
self.controller.show_popup_with_message(notice, width=50)
17201720
self.controller.update_screen()
17211721
self._notified_user_of_notification_failure = True
17221722

0 commit comments

Comments
 (0)