feat(ui): Cài đặt ▸ Giới thiệu, gỡ dòng ghi công khỏi thanh trạng thái
Dòng "Made by QuanDH14" là widget thường trực ở góc dưới phải: chiếm một góc màn hình trên MỌI màn, suốt cả phiên, cho một thông tin chỉ cần đọc một lần. Chuyển vào Cài đặt ▸ Giới thiệu — vẫn tra được, không còn đứng thường trực. Mục Giới thiệu đứng CUỐI danh sách: nó không có thiết lập nào để đổi, nên đặt trước các mục thao tác được sẽ đẩy chúng xuống mà không được gì. Đặc tả SettingsDialog đổi từ 5 lên 6 mục — thay đổi CÓ CHỦ Ý, không phải tách nhầm. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
thanhnv
co-authored by
Claude Opus 5
parent
19f3ccc7be
commit
d4da30f9a6
@@ -163,9 +163,10 @@ class MainWindow(NavRailMixin, RailProjectMixin, TopBarMixin,
|
||||
self._built.append(widget is not None)
|
||||
|
||||
self._build_nav_rail(right, rlay)
|
||||
# Landing stays Workspace ▸ Project, exactly as before. Go through _goto
|
||||
# so the page is actually shown — selecting the row alone only moves the
|
||||
# highlight (its signals are blocked to avoid rebuild loops).
|
||||
# Land on the Workspace screen. Go through _goto so the page is actually
|
||||
# shown — selecting the row alone only moves the highlight (its signals
|
||||
# are blocked to avoid rebuild loops). Which Workspace sub-view the user
|
||||
# ends up looking at is settled after _restore_sessions(), below.
|
||||
self._goto(self._ROW_WORKSPACE, self.workspace.current_subtab())
|
||||
self.toast = Toast(self) # top-left "task done" popup
|
||||
# Floating in-app Help assistant — a robot icon pinned bottom-right on
|
||||
@@ -176,14 +177,19 @@ class MainWindow(NavRailMixin, RailProjectMixin, TopBarMixin,
|
||||
self.help_agent.status_message.connect(self.statusBar().showMessage)
|
||||
|
||||
self.statusBar().showMessage(tr("app.status.ready"))
|
||||
# Author credit, pinned to the bottom-right corner. A permanent status-bar
|
||||
# widget sits at the right end and is never cleared by showMessage (which
|
||||
# writes on the left).
|
||||
self._credit = QLabel(tr("app.credit"))
|
||||
self._credit.setObjectName("faint")
|
||||
self._credit.setStyleSheet("padding: 0 10px;")
|
||||
self.statusBar().addPermanentWidget(self._credit)
|
||||
# Dòng ghi công tác giả đã chuyển vào Cài đặt ▸ Giới thiệu
|
||||
# (presentation/settings/about_widget.py). Nó từng là widget thường trực
|
||||
# ở góc dưới phải: chiếm một góc màn hình trên MỌI màn hình, suốt cả
|
||||
# phiên, cho một thông tin chỉ cần đọc một lần.
|
||||
self._restore_sessions()
|
||||
# Open on "All projects…" — literally the same call the nav rail's link
|
||||
# of that name makes, so the rail highlight and the content can never
|
||||
# disagree. This runs AFTER the restore on purpose: _restore_sessions
|
||||
# still reloads the last thread, because recovering it after a crash is
|
||||
# the whole point of it, but the user should first see the list of
|
||||
# everything rather than whichever conversation happened to be open when
|
||||
# the app was last closed.
|
||||
self.goto_all_projects()
|
||||
self._tray.setup()
|
||||
# Start the task scheduler last, once the whole window exists — it
|
||||
# catches up any overdue tasks right away (first tick runs inline).
|
||||
@@ -252,7 +258,6 @@ class MainWindow(NavRailMixin, RailProjectMixin, TopBarMixin,
|
||||
self._nav_toggle_btn.setText("" if self._nav_collapsed else tr("app.nav.menu_label"))
|
||||
self._nav_toggle_btn.setToolTip(
|
||||
tr("app.nav.expand_tooltip") if self._nav_collapsed else tr("app.nav.collapse_tooltip"))
|
||||
self._credit.setText(tr("app.credit"))
|
||||
if hasattr(self, "provider_lbl"):
|
||||
self.provider_lbl.setText(tr("app.provider"))
|
||||
if hasattr(self, "settings_btn"):
|
||||
|
||||
Reference in New Issue
Block a user