Skip to content

Commit

Permalink
Dev (#2316)
Browse files Browse the repository at this point in the history
* refine mindmap

* update release

* release v3.16.0
  • Loading branch information
tamlok authored Dec 30, 2022
1 parent 5229be4 commit 31d4ad1
Show file tree
Hide file tree
Showing 15 changed files with 516 additions and 428 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

env:
VNOTE_VER: 3.15.1
VNOTE_VER: 3.16.0

jobs:
build-linux:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

env:
VNOTE_VER: 3.15.1
VNOTE_VER: 3.16.0

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

env:
VNOTE_VER: 3.15.1
VNOTE_VER: 3.16.0

jobs:
build:
Expand Down
11 changes: 11 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# Changes
## v3.16.0
* Support reading PDF format
* Support Ming Map editor in suffix `*.emind`
* Support "View By" for notebooks selector
* ViewWindow: add shortcut Ctrl+G,V to alternate among view modes
* Bug fixes

## v3.15.1
* Add two themes
* Bug fixes

## v3.15.0
* Editor supports Word Count
* Add Open Windows panel
Expand Down
1 change: 1 addition & 0 deletions src/core/buffer/filetypehelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ void FileTypeHelper::setupBuiltInTypes()
type.m_type = FileType::Pdf;
type.m_typeName = QStringLiteral("PDF");
type.m_displayName = Buffer::tr("Portable Document Format");
type.m_isNewable = false;

auto suffixes = coreConfig.findFileTypeSuffix(type.m_typeName);
if (suffixes && !suffixes->isEmpty()) {
Expand Down
9 changes: 6 additions & 3 deletions src/core/buffer/filetypehelper.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ namespace vnotex
Others
};

QString preferredSuffix() const;

bool isMarkdown() const;

// Type.
int m_type = -1;

Expand All @@ -29,9 +33,8 @@ namespace vnotex

QStringList m_suffixes;

QString preferredSuffix() const;

bool isMarkdown() const;
// Whether we can new this type of file.
bool m_isNewable = true;
};

// Only handle built-in editors.
Expand Down
3 changes: 1 addition & 2 deletions src/core/htmltemplatehelper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -378,9 +378,8 @@ void HtmlTemplateHelper::updateMindMapEditorTemplate(const MindMapEditorConfig &

s_mindMapEditorTemplate.m_revision = p_config.revision();

const auto &themeMgr = VNoteX::getInst().getThemeMgr();
generateMindMapEditorTemplate(p_config,
themeMgr.getFile(Theme::File::WebStyleSheet),
QString() /* Use empty theme style for now */,
s_mindMapEditorTemplate);
}

Expand Down
4 changes: 2 additions & 2 deletions src/data/core/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
<key>CFBundleExecutable</key>
<string>vnote</string>
<key>CFBundleShortVersionString</key>
<string>3.15.1</string>
<string>3.16.0</string>
<key>CFBundleVersion</key>
<string>3.15.1.1</string>
<string>3.16.0.1</string>
<key>NSHumanReadableCopyright</key>
<string>Created by VNoteX</string>
<key>CFBundleIconFile</key>
Expand Down
Loading

0 comments on commit 31d4ad1

Please sign in to comment.