pbek / QOwnNotes

QOwnNotes is a plain-text file notepad and todo-list manager with Markdown support and Nextcloud / ownCloud integration.
https://www.qownnotes.org/
GNU General Public License v2.0
4.59k stars 407 forks source link

After switching the resolution, the interface displays abnormally #2809

Closed jwli6 closed 1 year ago

jwli6 commented 1 year ago

Expected behaviour

I hope that when the computer switches from 1280x800p resolution to 1696x1060p resolution, and then switches back, the interface will display normally.

Actual behaviour

After switching from 1280x800p resolution to 1696x1060p resolution, the interface displayed normally, but after switching back, the windows of Note Folder and Note List became small and could not be adjusted, and the tool bar's exit software button was squeezed off the screen. I tried uninstalling the software and then installing it innovatively, which solved this problem briefly, but when I adjusted the next time I adjusted the resolution of my computer, this problem reappeared. (One more message: I adjust the displayed font to be larger after each installation because it is too small to read.) )

Steps to reproduce

  1. The computer resolution is adjusted to 1280x800p;
  2. Install the software and open the software, set the layout to Minimal; And increase the font size ;
  3. The computer resolution is adjusted to 1696x1060p resolution; Open the software again, you can find that the interface is displayed normally;
  4. Switch the computer resolution back to 1280x800p, open the software, there may be a display abnormality (I am not sure whether it is successfully reproduced every time, but once it is reproduced, it will always display abnormalities below 720P)

Relevant log output in the Log panel

Expand ``` ```

Information about the application, settings and environment

Expand QOwnNotes Debug Information =========================== ## General Info **Current Date**: `周日 8月 13 09:35:43 2023` **Version**: `23.8.0` **Build date**: `Aug 4 2023` **Build number**: `1048` **Platform**: `macosx` **Operating System**: `macOS 12.6` **Build architecture**: `x86_64` **Current architecture**: `x86_64` **Release**: `GitHub Actions` **Qt Version (build)**: `5.15.2` **Qt Version (runtime)**: `5.15.2` **Portable mode**: `no` **Settings path / key**: `/Users/jwli/Library/Preferences/com.pbe.QOwnNotes.plist` **Application database path**: `/Users/jwli/Library/Application Support/PBE/QOwnNotes/QOwnNotes.sqlite` **Application arguments**: `/Applications/QOwnNotes.app/Contents/MacOS/QOwnNotes` **Qt Debug**: `0` **Locale (system)**: `zh_CN` **Locale (interface)**: *empty* **Primary screen resolution**: `1280x800` **Icon theme**: `breeze-qownnotes` **Notes in current note folder**: `220` **Calendar items**: `0` **Enabled scripts**: `0` ## Server Info **serverUrl**: *empty* **appIsValid**: `no` **notesPathExists**: *empty* **connectionErrorMessage**: *empty* ## Spellchecking **Enabled**: `false` **Selected language**: *empty* **Language codes**: *empty* **Language names**: *empty* **Application dictionaries path**: `/Users/jwli/Library/Application Support/PBE/QOwnNotes/dicts` ## Note folders **currentNoteFolderId**: `7` ### Note folder `default` **id**: `3` **isCurrent**: `no` **activeTagId**: `0` **localPath**: `/Users/jwli/Nextcloud/Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **database file**: `/Users/jwli/Nextcloud/Notes/notes.sqlite` ### Note folder `default` **id**: `4` **isCurrent**: `no` **activeTagId**: `0` **localPath**: `/Users/jwli/Nextcloud/Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **database file**: `/Users/jwli/Nextcloud/Notes/notes.sqlite` ### Note folder `default` **id**: `5` **isCurrent**: `no` **activeTagId**: `0` **localPath**: `/Users/jwli/Nextcloud/Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **database file**: `/Users/jwli/Nextcloud/Notes/notes.sqlite` ### Note folder `default` **id**: `6` **isCurrent**: `no` **activeTagId**: `0` **localPath**: `/Users/jwli/Nextcloud/Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **database file**: `/Users/jwli/Nextcloud/Notes/notes.sqlite` ### Note folder `default` **id**: `7` **isCurrent**: `yes` **activeTagId**: `0` **localPath**: `/Users/jwli/Nextcloud/Notes` **remotePath**: `Notes` **cloudConnectionId**: `1` **isShowSubfolders**: `yes` **isUseGit**: `no` **allowDifferentNoteFileName**: `no` **database file**: `/Users/jwli/Nextcloud/Notes/notes.sqlite` ## Cloud connections ### Cloud connection `Default` **id**: `1` **isCurrent**: `yes` **serverUrl**: *empty* **username**: *empty* **accountId**: *empty* ## Enabled scripts ## Settings **AKLastEmailListRequestDateKey** (QDateTime): `2023-08-13T09:11:17.266` **AKLastIDMSEnvironment** (qlonglong): `0` **ActiveNoteHistoryItem** (NoteHistoryItem): `` **AttachmentDialog/geometry** (QByteArray): `` **Country** (QString): `CN` **Debug/fakeOldVersionNumber** (bool): `false` **Debug/fileLogging** (bool): `false` **Editor/CurrentSchemaKey** (QString): `EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb` **Editor/autoBracketClosing** (bool): `true` **Editor/autoBracketRemoval** (bool): `true` **Editor/disableCursorBlinking** (bool): `false` **Editor/editorWidthInDFMOnly** (bool): `true` **Editor/highlightCurrentLine** (bool): `true` **Editor/indentSize** (qlonglong): `4` **Editor/removeTrailingSpaces** (bool): `false` **Editor/showLineNumbers** (bool): `false` **Editor/useTabIndent** (bool): `false` **Editor/vimMode** (bool): `false` **FileDialog/LastPath** (QString): `/Users/jwli/Nextcloud/papers/robotics` **FileDialog/LastPath-InsertAttachment** (QString): `/Users/jwli/Nextcloud/papers/robotics` **ImageDialog/disableCopying** (bool): `false` **ImageDialog/geometry** (QByteArray): `` **IssueAssistantDialog/geometry** (QByteArray): `` **LastUpdateCheck** (QDateTime): `2023-08-13T09:25:32.097` **LogWidget/criticalLog** (bool): `true` **LogWidget/debugLog** (bool): `true` **LogWidget/fatalLog** (bool): `true` **LogWidget/infoLog** (bool): `true` **LogWidget/scriptingLog** (bool): `true` **LogWidget/statusLog** (bool): `true` **LogWidget/warningLog** (bool): `true` **MainWindow/geometry** (QByteArray): `` **MainWindow/mainToolBar.iconSize** (qlonglong): `32` **MainWindow/menuBarGeometry** (QByteArray): `` **MainWindow/noteTextEdit.code.font** (QString): `Menlo,11,-1,5,50,0,0,0,0,0` **MainWindow/noteTextEdit.font** (QString): `.AppleSystemUIFont,13,-1,5,50,0,0,0,0,0` **MainWindow/noteTextView.code.font** (QString): `Menlo,10,-1,5,50,0,0,0,0,0` **MainWindow/noteTextView.font** (QString): `.AppleSystemUIFont,13,-1,5,50,0,0,0,0,0` **MainWindow/noteTextView.ignoreCodeFontSize** (bool): `true` **MainWindow/noteTextView.refreshDebounceTime** (qlonglong): `600` **MainWindow/noteTextView.rtl** (bool): `false` **MainWindow/noteTextView.underline** (bool): `true` **MainWindow/noteTextView.useEditorStyles** (bool): `true` **MainWindow/noteTextView.useInternalExportStyling** (bool): `true` **MainWindow/showNotesFromAllNoteSubFolders** (bool): `false` **MultipleSessionEnabled** (bool): `true` **NoteFolder-7/NoteTabStickinessList** (QStringList): `0, 1, 4, 5, 6, 11` **NoteHistory-7** (QVariantList): `` **NoteHistoryCurrentIndex-7** (qlonglong): `76` **PKSecureElementAvailableFlagsByHostSome** (qlonglong): `3` **PasswordDialog/geometry** (QByteArray): `` **PiwikClientId** (QString): `` **ScriptRepositoryDialog/mainSplitterState** (QByteArray): `` **SearchEngineId** (qlonglong): `2` **SettingsDialog/geometry** (QByteArray): `` **SettingsDialog/mainSplitterState** (QByteArray): `` **ShowSystemTray** (bool): `false` **StartHidden** (bool): `false` **TISRomanSwitchState** (qlonglong): `1` **UpdateDialog/geometry** (QByteArray): `` **WebAutomaticSpellingCorrectionEnabled** (bool): `true` **WelcomeDialog/geometry** (QByteArray): `` **_HIHideMenuBar** (bool): `true` **acceptAllExternalModifications** (bool): `false` **allowNoteEditing** (bool): `true` **allowOnlyOneAppInstance** (bool): `false` **appMetrics/disableAppHeartbeat** (bool): `false` **appMetrics/disableTracking** (bool): `false` **appMetrics/notificationShown** (bool): `true` **automaticNoteFolderDatabaseClosing** (bool): `false` **checkSpelling** (bool): `false` **closeTodoListAfterSave** (bool): `false` **cryptoKey** (qlonglong): `` **currentNoteFolderId** (qlonglong): `7` **currentWorkspace** (QString): `rQ3xv5esQvnC` **cursorWidth** (qlonglong): `1` **darkMode** (bool): `false` **darkModeColors** (bool): `false` **darkModeIconTheme** (bool): `false` **darkModeTrayIcon** (bool): `false` **defaultNoteFileExtension** (QString): `md` **disableAutomaticUpdateDialog** (bool): `true` **disableSavedSearchesAutoCompletion** (bool): `false` **dockWasInitializedOnce** (bool): `true` **enableNoteTree** (bool): `false` **enableSocketServer** (bool): `true` **enableWebAppSupport** (bool): `false` **externalEditorPath** (QString): *empty* **fullyHighlightedBlockquotes** (bool): `false` **gitCommitInterval** (qlonglong): `30` **gitExecutablePath** (QString): *empty* **gitLogCommand** (QString): *empty* **guiFirstRunInit** (bool): `true` **ignoreAllExternalModifications** (bool): `false` **ignoreAllExternalNoteFolderChanges** (bool): `false` **ignoreNoteSubFolders** (QString): `^\.` **ignoredNoteFiles** (QString): *empty* **imageScaleDown** (bool): `false` **imageScaleDownMaximumHeight** (qlonglong): `1024` **imageScaleDownMaximumWidth** (qlonglong): `1024` **initialLayoutIdentifier** (QString): `minimal` **insertTimeFormat** (QString): *empty* **interfaceFontSize** (qlonglong): `11` **interfaceLanguage** (QString): *empty* **internalIconTheme** (bool): `false` **itemHeight** (qlonglong): `18` **legacyLinking** (bool): `false` **localTrash/autoCleanupDays** (qlonglong): `30` **localTrash/autoCleanupEnabled** (bool): `true` **localTrash/supportEnabled** (bool): `true` **markdownHighlightingEnabled** (bool): `true` **navigationPanelAutoSelect** (bool): `true` **navigationPanelHideSearch** (bool): `false` **networking/ignoreSSLErrors** (bool): `true` **networking/proxyType** (qlonglong): `2` **newNoteAskHeadline** (bool): `false` **noteEditIsCentralWidget** (QString): `true` **noteFileExtensionList** (QStringList): `md` **noteListPreview** (bool): `false` **noteSaveIntervalTime** (qlonglong): `10` **noteSubfoldersPanelDisplayAsFullTree** (bool): `true` **noteSubfoldersPanelHideSearch** (bool): `false` **noteSubfoldersPanelOrder** (qlonglong): `0` **noteSubfoldersPanelShowFullPath** (bool): `false` **noteSubfoldersPanelShowNotesRecursively** (bool): `false` **noteSubfoldersPanelShowRootFolderName** (bool): `true` **noteSubfoldersPanelSort** (qlonglong): `0` **notesPanelOrder** (qlonglong): `0` **notesPanelSort** (qlonglong): `0` **notesPath** (QString): `/Users/jwli/Nextcloud/Notes` **notifyAllExternalModifications** (bool): `false` **overrideInterfaceFontSize** (bool): `false` **ownCloud/supportEnabled** (bool): `false` **ownCloud/todoCalendarBackend** (qlonglong): `3` **ownCloud/todoCalendarCalDAVPassword** (QString): `` **ownCloud/todoCalendarCalDAVServerUrl** (QString): *empty* **ownCloud/todoCalendarCalDAVUsername** (QString): *empty* **ownCloud/todoCalendarCloudConnectionId** (qlonglong): `1` **ownCloud/todoCalendarDisplayNameList** (QStringList): *empty* **ownCloud/todoCalendarEnabledList** (QStringList): *empty* **ownCloud/todoCalendarEnabledUrlList** (QStringList): *empty* **ownCloud/todoCalendarUrlList** (QStringList): *empty* **previousWorkspace** (QString): `8fWnpvaqsGWp` **restoreCursorPosition** (bool): `false` **restoreLastNoteAtStartup** (bool): `true` **restoreNoteTabs** (bool): `true` **savedSearches/noteFolder-7** (QStringList): `Note 2023-08-13T09.17.22, Note 2023-08-09T11.51.28, Note 2023-07-25T16.04.39, Note 2023-07-24T18.39.31, Note 2023-07-23T16.02.38, Note 2023-07-13T11.56.23, Note 2023-07-12T19.10.55, Note 2023-07-12T09.19.45, Note 2023-07-09T16.09.50, Note 2023-07-09T09.25.37, Note 2023-07-08T07.53.23` **showMatches** (bool): `true` **showMenuBar** (bool): `false` **showStatusBar** (bool): `true` **startInReadOnlyMode** (bool): `false` **systemIconTheme** (bool): `false` **taggingShowNotesRecursively** (bool): `false` **tagsPanelHideNoteCount** (bool): `false` **tagsPanelHideSearch** (bool): `false` **tagsPanelOrder** (qlonglong): `0` **tagsPanelSort** (qlonglong): `0` **todoCalendarSupport** (bool): `true` **toolbar/1/items** (QStringList): `action_New_note, action_Find_note, action_Remove_note, action_Open_note_in_external_editor, actionShow_local_trash, actionAllow_note_editing, , action_Back_in_note_history, action_Forward_in_note_history, , action_Find_text_in_note, actionReplace_in_current_note, , actionShow_versions, actionShow_trash, actionShare_note, , actionShow_Todo_List` **toolbar/1/name** (QString): `mainToolBar` **toolbar/1/title** (QString): `main toolbar` **toolbar/2/items** (QStringList): `actionFormat_text_bold, actionFormat_text_italic, actionStrike_out_text, actionInsert_code_block, actionInsert_block_quote` **toolbar/2/name** (QString): `formattingToolbar` **toolbar/2/title** (QString): `formatting toolbar` **toolbar/3/items** (QStringList): `actionInsert_text_link, actionInsert_image, actionInsert_current_time` **toolbar/3/name** (QString): `insertingToolbar` **toolbar/3/title** (QString): `inserting toolbar` **toolbar/4/items** (QStringList): `action_Encrypt_note, actionEdit_encrypted_note, actionDecrypt_note` **toolbar/4/name** (QString): `encryptionToolbar` **toolbar/4/title** (QString): `encryption toolbar` **toolbar/5/items** (QStringList): `actionWorkspaceComboBox, actionStore_as_new_workspace, actionRemove_current_workspace, actionRename_current_workspace, actionSwitch_to_previous_workspace, actionUnlock_panels, , actionToggle_distraction_free_mode, action_Increase_note_text_size, action_Decrease_note_text_size, action_Reset_note_text_size` **toolbar/5/name** (QString): `windowToolbar` **toolbar/5/title** (QString): `window toolbar` **toolbar/6/items** (QStringList): `action_Quit` **toolbar/6/name** (QString): `quitToolbar` **toolbar/6/title** (QString): `quit toolbar` **toolbar/size** (qlonglong): `6` **useNoteFolderButtons** (bool): `false` **useUNIXNewline** (bool): `false` **userMenuExtraStyle** (qlonglong): `0` **webAppClientService/serverUrl** (QString): `wss://app.qownnotes.org` **webAppClientService/token** (QString): `` **webSocketServerService/bookmarksNoteName** (QString): `Bookmarks` **webSocketServerService/bookmarksTag** (QString): `bookmarks` **webSocketServerService/commandSnippetsNoteName** (QString): `Commands` **webSocketServerService/commandSnippetsTag** (QString): `commands` **webSocketServerService/port** (qlonglong): `22222` **workspace-rQ3xv5esQvnC/name** (QString): `Minimal` **workspace-rQ3xv5esQvnC/noteSubFolderDockWidgetVisible** (bool): `true` **workspace-rQ3xv5esQvnC/windowState** (QByteArray): `` **workspaces** (QStringList): `rQ3xv5esQvnC` ## System environment **USER**: `jwli` **__CFBundleIdentifier**: `com.PBE.QOwnNotes` **COMMAND_MODE**: `unix2003` **LOGNAME**: `jwli` **PATH**: `/usr/bin:/bin:/usr/sbin:/sbin` **SSH_AUTH_SOCK**: `/private/tmp/com.apple.launchd.dwNOGMo5b5/Listeners` **SHELL**: `/bin/zsh` **HOME**: `/Users/jwli` **__CF_USER_TEXT_ENCODING**: `0x1F5:0x19:0x34` **TMPDIR**: `/var/folders/kk/mx62k37s6gn5n136z24vg8vc0000gn/T/` **XPC_SERVICE_NAME**: `application.com.PBE.QOwnNotes.34395794.34395797` **XPC_FLAGS**: `0x0` **QT_LOGGING_RULES**: `qt.network.ssl.warning=false`
pbek commented 1 year ago

Removing the app doesn't remove the settings, there is a button in the General settings for that.

A screenshot would be great to better imagine what went on and how it looked.

Is there any useful log output if you enable the log panel (see Window / Panels)? Please make sure you also enable debug logging in the log panel (by right-clicking on the panel and selecting Debug in Options).

jwli6 commented 1 year ago

Thanks for such a quick reply.

图片

Like this image, the note list on the left can't be pulled bigger, and the tool bar's exit button is squeezed out of the screen. But after I just tried the Settings >General->Clear app data and exit, the display was fine.