Philipp Hörist pushed to branch master at gajim / gajim
Commits:
-
c9fda87f
by lovetox at 2022-08-15T23:04:20+02:00
2 changed files:
Changes:
| ... | ... | @@ -742,14 +742,14 @@ def _on_command_error(self, |
| 742 | 742 | message_actions_box: MessageActionsBox,
|
| 743 | 743 | error: str) -> None:
|
| 744 | 744 | |
| 745 | - self._chat_control.add_info_message(error)
|
|
| 745 | + self._chat_control.add_command_output(error, True)
|
|
| 746 | 746 | |
| 747 | 747 | def _on_command_not_found(self,
|
| 748 | 748 | message_actions_box: MessageActionsBox,
|
| 749 | 749 | error: str
|
| 750 | 750 | ) -> None:
|
| 751 | 751 | |
| 752 | - self._chat_control.add_info_message(error)
|
|
| 752 | + self._chat_control.add_command_output(error, True)
|
|
| 753 | 753 | |
| 754 | 754 | |
| 755 | 755 | class ChatPlaceholderBox(Gtk.Box):
|
| ... | ... | @@ -507,6 +507,9 @@ def get_our_nick(self) -> str: |
| 507 | 507 | def _allow_add_message(self) -> bool:
|
| 508 | 508 | return self._scrolled_view.get_lower_complete()
|
| 509 | 509 | |
| 510 | + def add_command_output(self, text: str, is_error: bool) -> None:
|
|
| 511 | + self.conversation_view.add_command_output(text, is_error)
|
|
| 512 | + |
|
| 510 | 513 | def add_info_message(self,
|
| 511 | 514 | text: str,
|
| 512 | 515 | timestamp: Optional[float] = None
|