|
|
@@ -397,6 +397,8 @@ public:
|
|
|
|
|
|
QString getThemeFile() const;
|
|
|
|
|
|
+ bool getCloseBeforeExternalEditor() const;
|
|
|
+
|
|
|
private:
|
|
|
// Look up a config from user and default settings.
|
|
|
QVariant getConfigFromSettings(const QString §ion, const QString &key) const;
|
|
|
@@ -769,6 +771,9 @@ private:
|
|
|
// [name] -> [file path].
|
|
|
QMap<QString, QString> m_codeBlockCssStyles;
|
|
|
|
|
|
+ // Whether close note before open it via external editor.
|
|
|
+ bool m_closeBeforeExternalEditor;
|
|
|
+
|
|
|
// The name of the config file in each directory, obsolete.
|
|
|
// Use c_dirConfigFile instead.
|
|
|
static const QString c_obsoleteDirConfigFile;
|
|
|
@@ -1911,4 +1916,9 @@ inline void VConfigManager::setCodeBlockCssStyle(const QString &p_style)
|
|
|
setConfigToSettings("global", "code_block_css_style", m_codeBlockCssStyle);
|
|
|
}
|
|
|
|
|
|
+inline bool VConfigManager::getCloseBeforeExternalEditor() const
|
|
|
+{
|
|
|
+ return m_closeBeforeExternalEditor;
|
|
|
+}
|
|
|
+
|
|
|
#endif // VCONFIGMANAGER_H
|