disable copy as html in linux

This commit is contained in:
Roy Qu 2021-12-25 23:46:12 +08:00
parent edc9fe6ed0
commit cce3d45d59
2 changed files with 7 additions and 1 deletions

View File

@ -1198,7 +1198,11 @@ void Settings::Editor::doLoad()
mCopySizeLimit = boolValue("copy_limit",true);
mCopyCharLimits = intValue("copy_char_limits",100);
mCopyLineLimits = intValue("copy_line_limits",100000);
mCopyWithFormatAs = intValue("copy_with_format_as",1);
#ifdef Q_OS_WIN
mCopyWithFormatAs = intValue("copy_with_format_as",1); //html
#else
mCopyWithFormatAs = intValue("copy_with_format_as",0); //none
#endif
mCopyRTFUseBackground = boolValue("copy_rtf_use_background",false);
mCopyRTFUseEditorColor = boolValue("copy_rtf_use_editor_color_scheme",false);
mCopyRTFColorScheme = stringValue("copy_rtf_color_scheme","Intellij Classic");

View File

@ -10,7 +10,9 @@ EditorClipboardWidget::EditorClipboardWidget(const QString& name, const QString&
{
ui->setupUi(this);
ui->cbCopyWithFormatAs->addItem("None");
#ifdef Q_OS_WIN
ui->cbCopyWithFormatAs->addItem("HTML");
#endif
for (QString name: pColorManager->getSchemes()) {
ui->cbHTMLColorScheme->addItem(name);