Skip to content

Commit bb9eeb5

Browse files
committed
edit some comments
1 parent 4ae43b9 commit bb9eeb5

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/jabs/ui/update_check_dialog.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,15 @@ def __init__(
3535
self.setWindowTitle("Check for Updates")
3636
self.setMinimumWidth(400)
3737

38-
# Main layout
3938
main_layout = QVBoxLayout()
40-
41-
# Top section with icon and status
4239
top_layout = QHBoxLayout()
4340

44-
# Icon
41+
# Use the JABS application icon
4542
icon_label = QLabel()
4643
icon_path = Path(__file__).parent.parent / "resources" / "icon.png"
4744
if icon_path.exists():
4845
pixmap = QPixmap(str(icon_path))
49-
# Scale the icon to a reasonable size
46+
# Scale the icon to a reasonable size for display in the dialog
5047
scaled_pixmap = pixmap.scaled(
5148
64,
5249
64,
@@ -56,9 +53,7 @@ def __init__(
5653
icon_label.setPixmap(scaled_pixmap)
5754
top_layout.addWidget(icon_label, alignment=Qt.AlignmentFlag.AlignTop)
5855

59-
# Status text layout
6056
status_layout = QVBoxLayout()
61-
6257
if latest_version is None:
6358
# Check failed
6459
title_label = QLabel("Update Check Failed")
@@ -90,7 +85,6 @@ def __init__(
9085

9186
# Version information
9287
version_info_layout = QVBoxLayout()
93-
9488
current_label = QLabel(f"<b>Current version:</b> {current_version}")
9589
version_info_layout.addWidget(current_label)
9690

@@ -112,10 +106,8 @@ def __init__(
112106
status_layout.addWidget(instructions_label)
113107

114108
top_layout.addLayout(status_layout)
115-
116109
main_layout.addLayout(top_layout)
117110

118-
# Bottom buttons
119111
button_layout = QHBoxLayout()
120112
button_layout.addStretch()
121113

0 commit comments

Comments
 (0)