Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[I] Disable "Enable Markdown Highlighting" - it is re-enabled after restart of QOwnNotes #2622

Closed
adrienneteicher opened this issue Oct 10, 2022 · 6 comments
Assignees
Labels
Severity: Low Bugs or breaking changes with low impact Type: Bug - Regression
Milestone

Comments

@adrienneteicher
Copy link

Expected behaviour

Disable "Enable Markdown Highlighting" in settings and markdown settings stays disabled after restart of qownnotes

Actual behaviour

Markdown highlighting is active after restart of qownnotes. Can only be deactivtated by re-enabling then disabling the "Enable Markdown Highlighting" option

Steps to reproduce

  1. Disable "Enable Markdown Highlighting"
  2. Restart QOwnNotes

Relevant log output in the Log panel

Expand
[11:55:15] [debug] updatePanelMenu - 'updatePanelMenu'

Information about the application, settings and environment

Expand

QOwnNotes Debug Information

General Info

Current Date: Mon Oct 10 11:55:22 2022
Version: 22.9.2
Build date: Sep 27 2022
Build number: 984
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/adrienne/Library/Preferences/com.pbe.QOwnNotes.plist
Application database path: /Users/adrienne/Library/Application Support/PBE/QOwnNotes/QOwnNotes.sqlite
Application arguments: /Applications/QOwnNotes.app/Contents/MacOS/QOwnNotes
Qt Debug: 0
Locale (system): en_IE
Locale (interface): empty
Primary screen resolution: 1440x900
Icon theme: breeze-qownnotes
Notes in current note folder: 413
Calendar items: 82
Enabled scripts: 1

Server Info

serverUrl: empty
appIsValid: no
notesPathExists: empty
connectionErrorMessage: empty

Spellchecking

Enabled: true
Selected language: en_GB
Language codes: en_GB
Language names: British English (United Kingdom)
Application dictionaries path: /Users/adrienne/Library/Application Support/PBE/QOwnNotes/dicts

Note folders

currentNoteFolderId: 1

Note folder default

id: 1
isCurrent: yes
activeTagId: -1
localPath: /Volumes/AdriSSD/Cloud-adrienne/Notes
remotePath: Notes
cloudConnectionId: 1
isShowSubfolders: yes
isUseGit: no
allowDifferentNoteFileName: no
activeNoteSubFolder name: empty
database file: /Volumes/AdriSSD/Cloud-adrienne/Notes/notes.sqlite

Cloud connections

Cloud connection ``

id: 1
isCurrent: yes
serverUrl: empty
username: empty
accountId: adrienne

Enabled scripts

Script Custom user interface styling

id: 1
path: /Users/adrienne/Library/Application Support/PBE/QOwnNotes/scripts/custom-stylesheet/custom-stylesheet.qml
variablesJson:

{
    "customStylesheet": "QTreeWidget#noteTreeWidget {font-family: Pacifico; font-size: 28px;}"
}

identifier: custom-stylesheet
version: 0.0.2
minAppVersion: 17.05.7

Settings

AKLastEmailListRequestDateKey (QDateTime): 2021-08-24T02:01:41.903
AKLastIDMSEnvironment (qlonglong): 0
ActiveNoteHistoryItem (NoteHistoryItem): <binary data>
Country (QString): DE
Debug/fakeOldVersionNumber (bool): false
Debug/fileLogging (bool): false
DictionaryManagerDialog/geometry (QByteArray): <binary data>
DictionaryManagerDialog/mainSplitterState (QByteArray): <binary data>
DistractionFreeMode/isEnabled (bool): false
DistractionFreeMode/menuBarGeometry (QByteArray): <binary data>
DistractionFreeMode/menuBarHeight (qlonglong): 0
DistractionFreeMode/menuBarVisible (bool): false
DistractionFreeMode/windowState (QByteArray): <binary data>
Editor/CurrentSchemaKey (QString): EditorColorSchema-6033d61b-cb96-46d5-a3a8-20d5172017eb
Editor/autoBracketClosing (bool): true
Editor/autoBracketRemoval (bool): false
Editor/centerCursor (bool): false
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
IssueAssistantDialog/geometry (QByteArray): <binary data>
LastUpdateCheck (QDateTime): 2022-10-10T11:44:26.015
LinkDialog/geometry (QByteArray): <binary data>
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): <binary data>
MainWindow/mainToolBar.iconSize (qlonglong): 24
MainWindow/menuBarGeometry (QByteArray): <binary data>
MainWindow/noteSubFolderTreeWidgetExpandState-1 (QStringList): Code & Tech, Audio/How To Use/Bitwig, Theory, Video Editing, Tech, Writing, Tech/Linux, Dance
MainWindow/noteTextEdit.code.font (QString): Menlo,15,-1,5,50,0,0,0,0,0,Regular
MainWindow/noteTextEdit.font (QString): Arial,15,-1,5,50,0,0,0,0,0,Regular
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
MessageBoxOverride/issue-dialog-new-issue (qlonglong): 16384
MessageBoxOverride/layoutwidget-use-layout (qlonglong): 16384
MessageBoxOverride/log-file-cleared (qlonglong): 1024
MessageBoxOverride/move-notes (qlonglong): 16384
MessageBoxOverride/readonly-mode-allow (qlonglong): 16384
MessageBoxOverride/remove-folders (qlonglong): 16384
MessageBoxOverride/remove-notes (qlonglong): 16384
MessageBoxOverride/script-install-successful (qlonglong): 1024
NoteFolder-1/NoteTabNameList (QStringList): Kitchen cleaner, QCRG Notes Combined
NoteFolder-1/NoteTabStickinessList (QStringList): empty
NoteFolder-1/NoteTabSubFolderPathDataList (QStringList):

AAALists, Theory
QCRG

NoteHistory-1 (QVariantList): <variant list with 200 item(s)>
NoteHistoryCurrentIndex-1 (qlonglong): 199
PKSecureElementAvailableFlagsByHost (qlonglong): 3
PKSecureElementAvailableFlagsByHostSome (qlonglong): 3
PiwikClientId (QString): <hidden>
ScriptRepositoryDialog/geometry (QByteArray): <binary data>
ScriptRepositoryDialog/mainSplitterState (QByteArray): <binary data>
SearchEngineId (qlonglong): 2
SettingsDialog/geometry (QByteArray): <binary data>
SettingsDialog/mainSplitterState (QByteArray): <binary data>
ShowSystemTray (bool): false
StartHidden (bool): false
TableDialog/geometry (QByteArray): <binary data>
WebAutomaticSpellingCorrectionEnabled (bool): true
WelcomeDialog/geometry (QByteArray): <binary data>
_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): true
closeTodoListAfterSave (bool): false
cryptoKey (qlonglong): <hidden>
currentNoteFolderId (qlonglong): 1
currentWorkspace (QString): 6zvSQd9GyhtC
cursorWidth (qlonglong): 1
darkMode (bool): false
darkModeColors (bool): false
darkModeIconTheme (bool): false
darkModeTrayIcon (bool): false
defaultNoteFileExtension (QString): md
demoNotesCreated (bool): true
disableAutomaticUpdateDialog (bool): true
disableSavedSearchesAutoCompletion (bool): false
dockWasInitializedOnce (bool): true
enableNoteTree (bool): false
enableSocketServer (bool): false
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
interfaceStyle (QString): macintosh
internalIconTheme (bool): false
itemHeight (qlonglong): 18
legacyLinking (bool): false
localTrash/autoCleanupDays (qlonglong): 7
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 (bool): true
noteFileExtensionList (QStringList): md, txt
noteListPreview (bool): false
noteSaveIntervalTime (qlonglong): 10
noteSubfoldersPanelDisplayAsFullTree (bool): true
noteSubfoldersPanelHideSearch (bool): false
noteSubfoldersPanelOrder (qlonglong): 0
noteSubfoldersPanelShowFullPath (bool): false
noteSubfoldersPanelShowNotesRecursively (bool): true
noteSubfoldersPanelShowRootFolderName (bool): true
noteSubfoldersPanelSort (qlonglong): 0
notesPanelOrder (qlonglong): 0
notesPanelSort (qlonglong): 1
notesPath (QString): /Volumes/AdriSSD/Cloud-adrienne/Notes
notifyAllExternalModifications (bool): false
overrideInterfaceFontSize (bool): false
ownCloud/supportEnabled (bool): false
ownCloud/todoCalendarBackend (qlonglong): 3
ownCloud/todoCalendarCalDAVPassword (QString): <hidden>
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
ownCloudInfo/appIsValid (bool): false
ownCloudInfo/connectionErrorMessage (QString): empty
ownCloudInfo/notesPathExistsText (QString): empty
ownCloudInfo/serverVersion (QString): empty
previousWorkspace (QString): 7aDGCNVuxvKU
recentNoteFolders (QStringList): /Users/adrienne/Notes
restoreCursorPosition (bool): false
restoreLastNoteAtStartup (bool): true
restoreNoteTabs (bool): true
savedSearches/noteFolder-1 (QStringList): Note 2022-10-05T15.17.27, Note 2022-10-04T16.16.44, Note 2022-10-04T13.27.22, Note 2022-09-27T00.14.50, Note 2022-09-27T00.10.54, Note 2022-09-27T00.10.25, Note 2022-09-26T23.50.21, Note 2022-09-14T14.45.28, Note 2022-09-14T13.17.14, Note 2022-08-30T20.17.45, Note 2022-08-30T19.14.21, Note 2022-08-20T22.57.50, Note 2022-08-13T18.45.29, Note 2022-08-13T14.31.39, Note 2022-08-13T14.30.27, Note 2022-08-12T15.58.18, Note 2022-08-10T21.55.21, Note 2022-08-09T16.52.24, Note 2022-08-05T23.28.09, Note 2022-08-05T23.17.18, Note 2022-08-05T23.10.40, Note 2022-08-05T19.54.31, Note 2022-08-05T19.54.14, senat, Note 2022-07-28T16.32.25, Note 2022-07-28T10.08.33, Note 2022-07-27T19.33.03, Note 2022-07-27T19.32.38, Note 2022-07-27T19.32.09, Note 2022-07-27T18.54.22, artist, Note 2022-07-22T09.09.07, Note 2022-07-18T17.58.02, Note 2022-07-09T11.49.13, Note 2022-07-09T11.49.00, Note 2022-07-08T15.36.42, Note 2022-07-07T16.55.54, Note 2022-07-07T16.41.10, Note 2022-07-06T22.21.17, Note 2022-07-05T21.56.43, Note 2022-07-02T16.33.10, Note 2022-07-02T16.32.46, Note 2022-06-24T18.36.18, Note 2022-06-22T22.28.08, Note 2022-06-22T17.13.20, Note 2022-06-20T17.10.55, Fragments, Note 2022-06-15T11.25.45, Note 2022-06-15T00.43.46, paralogisms, conjunctive, Note 2022-06-06T13.32.44, Note 2022-06-05T20.25.20, Note 2022-06-05T20.21.01, Note 2022-06-05T20.16.41, Note 2022-06-05T19.43.34, Note 2022-06-05T19.29.44, Note 2022-06-05T17.54.21, Note 2022-06-05T17.20.33, Note 2022-06-05T17.13.07, Note 2022-06-04T21.43.47, Note 2022-06-04T21.43.27, Note 2022-06-04T19.12.18, Note 2022-05-22T23.50.02, nvc online, set up mac, lav, Note 2022-05-20T00.11.23, Note 2022-05-19T13.28.59, Note 2022-05-13T23.43.55, Note 2022-05-10T00.31.41, Note 2022-05-03T15.54.10, Note 2022-04-22T19.15.13, adri, Note 2022-04-11T10.47.32, Note 2022-04-02T16.58.27, Note 2022-04-02T16.58.17, Note 2022-04-02T12.58.36, Note 2022-04-02T12.53.24, Note 2022-04-01T18.27.09, Note 2022-03-31T20.18.13, Note 2022-03-31T18.52.48, Note 2022-03-31T17.56.25, Note 2022-03-31T17.56.02, Note 2022-03-31T17.55.33, Note 2022-03-31T13.44.22
showMatches (bool): true
showMenuBar (bool): false
showStatusBar (bool): false
spellCheckLanguage (QString): en_GB
systemIconTheme (bool): false
taggingShowNotesRecursively (bool): true
tagsPanelHideNoteCount (bool): false
tagsPanelHideSearch (bool): false
tagsPanelOrder (qlonglong): 0
tagsPanelSort (qlonglong): 0
todoCalendarSupport (bool): false
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
webAppClientService/serverUrl (QString): wss://app.qownnotes.org
webAppClientService/token (QString): <hidden>
webSocketServerService/bookmarksNoteName (QString): Bookmarks
webSocketServerService/bookmarksTag (QString): bookmarks
webSocketServerService/commandSnippetsNoteName (QString): Commands
webSocketServerService/commandSnippetsTag (QString): commands
webSocketServerService/port (qlonglong): 22222
workspace-6zvSQd9GyhtC/name (QString): Minimal
workspace-6zvSQd9GyhtC/noteSubFolderDockWidgetVisible (bool): true
workspace-6zvSQd9GyhtC/windowState (QByteArray): <binary data>
workspace-7aDGCNVuxvKU/name (QString): Single column
workspace-7aDGCNVuxvKU/noteSubFolderDockWidgetVisible (bool): true
workspace-7aDGCNVuxvKU/windowState (QByteArray): <binary data>
workspace-initial/name (QString): Minimal
workspace-initial/noteSubFolderDockWidgetVisible (bool): true
workspace-initial/windowState (QByteArray): <binary data>
workspace-phKSePnRzYZk/name (QString): Single column
workspace-phKSePnRzYZk/noteSubFolderDockWidgetVisible (bool): true
workspace-phKSePnRzYZk/windowState (QByteArray): <binary data>
workspaces (QStringList): initial, phKSePnRzYZk, 7aDGCNVuxvKU, 6zvSQd9GyhtC

System environment

USER: adrienne
__CFBundleIdentifier: com.PBE.QOwnNotes
COMMAND_MODE: unix2003
LOGNAME: adrienne
PATH: /usr/bin:/bin:/usr/sbin:/sbin
SSH_AUTH_SOCK: /private/tmp/com.apple.launchd.4vzfXnUA3S/Listeners
SHELL: /bin/zsh
HOME: /Users/adrienne
__CF_USER_TEXT_ENCODING: 0x1F5:0x0:0x2
TMPDIR: /var/folders/gl/ghv7slss48j2vxkz6bhrckt80000gn/T/
XPC_SERVICE_NAME: application.com.PBE.QOwnNotes.26096067.26096070
XPC_FLAGS: 0x0
QT_LOGGING_RULES: qt.network.ssl.warning=false

@adrienneteicher adrienneteicher changed the title [I] Enable Markdown Highlighting [I] Disable "Enable Markdown Highlighting" - it is re-enabled after restart of QOwnNotes Oct 10, 2022
@pbek
Copy link
Owner

pbek commented Oct 10, 2022

Thank you, I can reproduce that.
@Waqar144, maybe anything that was changed this year in QMarkdownTextEdit?

@pbek pbek added Type: Bug - Regression Severity: Low Bugs or breaking changes with low impact labels Oct 10, 2022
@Waqar144
Copy link
Contributor

Probably the setting is not being read at the right time when QON starts up

@pbek
Copy link
Owner

pbek commented Oct 10, 2022

QMarkdownTextEdit::setHighlightingEnabled always seems to return in the 2nd line.

@pbek
Copy link
Owner

pbek commented Oct 10, 2022

pbek referenced this issue in pbek/qmarkdowntextedit Oct 10, 2022
@pbek pbek self-assigned this Oct 11, 2022
@pbek pbek added this to the 22.10.1 milestone Oct 11, 2022
@pbek
Copy link
Owner

pbek commented Oct 11, 2022

22.10.1

  • disabling of the Markdown highlighting now also works after a restart of
    the application again (for #2622)

@pbek
Copy link
Owner

pbek commented Oct 11, 2022

There now is a new release, could you please test it and report if it works for you?

@pbek pbek closed this as completed Oct 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Severity: Low Bugs or breaking changes with low impact Type: Bug - Regression
Projects
None yet
Development

No branches or pull requests

3 participants