Skip to content

Commit 3d9ca66

Browse files
committed
CUDA installer UI adjustments
1 parent f06b8b1 commit 3d9ca66

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

buzz/widgets/cuda_installer_widget.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def _on_install_clicked(self):
107107
self.decline_button.setEnabled(False)
108108
self.progress_bar.setVisible(True)
109109
self.log_view.setVisible(True)
110+
self.status_label.setVisible(False)
110111

111112
worker = _InstallWorker()
112113
worker.signals.progress.connect(self._on_progress)
@@ -117,10 +118,13 @@ def _on_install_clicked(self):
117118

118119
def _on_progress(self, message: str):
119120
self.log_view.append(message)
120-
self.status_label.setText(message[:80])
121+
self.log_view.verticalScrollBar().setValue(
122+
self.log_view.verticalScrollBar().maximum()
123+
)
121124

122125
def _on_finished(self):
123126
self.progress_bar.setVisible(False)
127+
self.status_label.setVisible(True)
124128
self.status_label.setText(
125129
_("Installation complete! Restart Buzz to enable GPU acceleration.")
126130
)
@@ -131,6 +135,7 @@ def _on_finished(self):
131135

132136
def _on_error(self, error: str):
133137
self.progress_bar.setVisible(False)
138+
self.status_label.setVisible(True)
134139
self.status_label.setText(_("Installation failed: {}").format(error))
135140
self.install_button.setEnabled(True)
136141
self.decline_button.setEnabled(True)

0 commit comments

Comments
 (0)