- Improved error handling by checking for response code and data presence.
- Consolidated state updates for loading and error messages.
- Added console log for debugging metadata search results.
- Added console logs to display permission status, local usage configuration, and support status in the Header component for better debugging.
- Enhanced the clarity of the code by providing insights into the current state of local file management and configuration settings.
- Commented out the previous tray icon path and creation logic for macOS to streamline the code.
- Updated the tray icon resizing to ensure better quality and clarity in the status bar.
- Maintained the non-template image setting for improved visual fidelity.
- Updated the logic for setting the tray icon path based on the operating system.
- Changed the icon to use a dedicated template image for macOS, ensuring better appearance in the status bar.
- Removed unnecessary resizing logic for the tray icon, simplifying the code.
- Adjusted the tray icon resizing logic for macOS to ensure proper display in the status bar.
- Changed the icon to remain non-template to avoid rendering issues with the app's full-color icon.
- Enhanced the quality of the resized icon for improved visual fidelity.
- Introduced a `throttle` utility function to optimize resize event handling in the Background, ImportLocal, Header, BookList, Viewer, and main application logic.
- Replaced existing resize event listeners with throttled versions to improve performance and reduce unnecessary re-renders.
- Ensured proper cleanup of event listeners in component lifecycle methods to prevent memory leaks.
- Added `loadUrlInAuxWindow` function to manage URL loading in auxiliary windows, ensuring proper handling of same-origin navigation and reloading.
- Updated IPC handler for opening URLs to utilize the new loading function for both dictionary and translation windows.
- Added separate IPC listeners for "before-reader-close" and "before-tab-close" to manage close events more effectively.
- Updated the onBeforeClose method to send signals for both reader and tab closures, ensuring proper cleanup and state management.
- Removed unnecessary console logs from PopupDict and handleFetchPlugins functions.
- Updated Viewer component to utilize XPath navigation if KOReader sync is enabled.
- Introduced getBookPath method in BookUtil to retrieve the book's file path based on its key and format.
- Enhanced KOReader sync logic to include timestamp checks and partial MD5 calculation for books.
- Updated the PopupOption component to apply inline styles for the setting icon, changing its color to #8a8f9f and font size to 24px.
- Removed the corresponding CSS class definition for .setting-icon from popupOption.css to streamline styles.
- Added a new field for selecting and displaying the book path in the edit dialog.
- Integrated Electron's IPC to allow users to select a book path from the file system.
- Updated the state management to include the book path and ensure it is saved with the book details.
- Enhanced the UI to provide options for locating and selecting the book path.
- Added corresponding styles for the new book path UI elements.
- Updated icon font files (eot, svg, ttf, woff) with new versions.
- Modified CSS to reference updated font files with new query strings.
- Added new "Reading" section in the settings dialog sidebar.
- Restored "Background" option in the settings dialog sidebar.
- Enhanced backup dialog to handle settings more effectively.
- Added success toast notifications for dropdown list actions.
- Adjusted reading status filter dropdown width for better UI.
- Added translation for "Enable Discord Rich Presence" and its description in Chinese.
- Introduced a new setting option for enabling Discord Rich Presence in the settings panel.
- Implemented functionality to update Discord Rich Presence with the current book information when reading.
- Added methods to clear Discord Rich Presence when the reader is closed.
- Updated the percentage display in the reading progress to show as a percentage.