Skip to content

Commit abdc454

Browse files
committed
views: Add Detected Environment section to About popup.
This includes the established Platform (PLATFORM), and the recent addition of the python version and implementation. Test updated.
1 parent 203d5cc commit abdc454

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

tests/ui_tools/test_popups.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ def test_categories(self) -> None:
259259
"Application",
260260
"Server",
261261
"Application Configuration",
262+
"Detected environment",
262263
]
263264

264265

zulipterminal/ui_tools/views.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
match_stream,
4242
match_user,
4343
)
44+
from zulipterminal.platform_code import PLATFORM, detected_python_in_full
4445
from zulipterminal.server_url import near_message_url
4546
from zulipterminal.ui_tools.boxes import PanelSearchBox
4647
from zulipterminal.ui_tools.buttons import (
@@ -1104,6 +1105,10 @@ def __init__(
11041105
("Notifications", "enabled" if notify_enabled else "disabled"),
11051106
],
11061107
),
1108+
(
1109+
"Detected environment",
1110+
[("Platform", PLATFORM), ("Python", detected_python_in_full())],
1111+
),
11071112
]
11081113

11091114
popup_width, column_widths = self.calculate_table_widths(contents, len(title))

0 commit comments

Comments
 (0)