Add Update sidebar menu item and macOS standard About menu
Add an "Update" entry to the sidebar to give users quick access to the application version without interrupting their reading session. Clicking it opens a themed modal popup (loaded conditionally via Loader) that displays AppInfo.version and keeps any currently open book loaded, providing a natural foundation for future update-checking functionality. On macOS, also install a parentless QMenuBar with a QAction::AboutRole item so Qt's Cocoa integration places "About Asteria" in the standard macOS Application menu without adding a QML in-window menu bar. The action invokes NSApp's standard About panel, leveraging the bundle name, icon, and version already configured in Info.plist.
This commit is contained in:
8 files changed
+182
-1
No files matched your search
@@ -322,6 +322,7 @@ src/
|
||||
FormatReader.h
|
||||
HistoryModel.h/cpp
|
||||
IFileDialogService.h
|
||||
MacMenuBar.h/mm
|
||||
NativeFileDialogService.h/cpp
|
||||
PortalFileDialogService.h/cpp
|
||||
QmlRegistrations.h
|
||||
@@ -385,6 +386,7 @@ src/
|
||||
SettingsPopup.qml
|
||||
SideBar.qml
|
||||
SideBarButton.qml
|
||||
UpdatePopup.qml
|
||||
pages/
|
||||
CustomThemePage.qml
|
||||
HistoryPage.qml
|
||||
|
||||
Reference in new issue
Block a user