Skip to content

Commit

Permalink
Github Issue #205: Refactoring logic to write markdown status to regi…
Browse files Browse the repository at this point in the history
…stry
  • Loading branch information
AngryFender committed Aug 21, 2024
1 parent ebdcb40 commit 512e5d8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions mkedit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -989,8 +989,6 @@ void MkEdit::setMkState(bool enable)
disableMarkdown.setText("Enable Markdown");
emit setMarkdownStatus(false);
}
QSettings settings("Remini","Remini");
settings.setValue("markdown",enable);
}

void MkEdit::setFont(const QFont &font)
Expand Down Expand Up @@ -1020,6 +1018,7 @@ void MkEdit::diableMarkdown_internal()
QSettings settings("Remini","Remini");
bool markdownStatus = settings.value("markdown",true).toBool();
setMkState(!markdownStatus);
settings.setValue("markdown",!markdownStatus);
}

void MkEdit::lineWrapHandler()
Expand Down
1 change: 0 additions & 1 deletion views_handler.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ public slots:
QCoreApplication::setApplicationName("Remini");
QSettings settings("Remini","Remini");
markdown = settings.value("markdown",true).toBool();
viewText->setMarkdownStatus(markdown);
viewText->setMkState(markdown);
viewTitle->setText("Startup Tips");

Expand Down

0 comments on commit 512e5d8

Please sign in to comment.