Browse Source

update welcome docs

Le Tan 7 years ago
parent
commit
88d915c43c
3 changed files with 25 additions and 7 deletions
  1. 11 2
      src/resources/docs/welcome_en.md
  2. 11 2
      src/resources/docs/welcome_zh.md
  3. 3 3
      src/vsingleinstanceguard.cpp

+ 11 - 2
src/resources/docs/welcome_en.md

@@ -1,11 +1,20 @@
 # Welcome to VNote
 ![VNote](qrc:/resources/icons/vnote.svg =128x)
 
-[VNote](https://tamlok.github.io/vnote) is a Vim-inspired note-taking application that knows programmers and Markdown better. VNote provides fancy Markdown experience as well as powerful notes management.
+> A Vim-inspired note-taking application that knows programmers and Markdown better.
+
+[VNote](https://tamlok.github.io/vnote) provides fancy Markdown experience as well as powerful notes management.
 
 VNote is **open source** and currently mainly developed and maintained by one single person in spare time. Hence, please don't hesitate to give VNote a hand if she does improve your productivity.
 
 ## Troubleshooting Guide
+VNote could be used in two ways:
+
+1. Note-taking application via notebooks, folders and notes. VNote manages all the data and provides additional functionality such as attachment and tag.
+2. Editor. VNote provides the explorer for local file system to open external files to edit.
+
+Steps to troubleshoot:
+
 1. Go through the context menu, menu bar, tool bar, settings, and help menu to check if you miss something;
 2. Changes to configuration may need re-opening current tabs or restarting VNote;
 3. There is a Markdown guide and shortcuts guide in the help menu, which might be helpful;
@@ -18,4 +27,4 @@ Now, how about pressing `Ctrl+G` and start today's work from **Universal Entry**
 
 Have fun!
 
-<a href="https://github.com/tamlok/vnote"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_green_007200.png" alt="Fork me on GitHub"></a>
+<a href="https://github.com/tamlok/vnote"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_green_007200.png" alt="Fork me on GitHub"></a>

+ 11 - 2
src/resources/docs/welcome_zh.md

@@ -1,11 +1,20 @@
 # 欢迎使用VNote
 ![VNote](qrc:/resources/icons/vnote.svg =128x)
 
-[VNote](https://tamlok.github.io/vnote) 是一个受Vim启发的、更懂程序员和Markdown的笔记软件。VNote提供了美妙的Markdown体验以及强大的笔记管理。
+> 一个受Vim启发的、更懂程序员和Markdown的笔记软件。
+
+[VNote](https://tamlok.github.io/vnote) 提供了美妙的Markdown体验以及强大的笔记管理。
 
 VNote是**开源**的,当前主要由个人在业余时间进行开发和维护。因此,如果VNote给您的效率带来了提升,请考虑帮助VNote成长。
 
 ## 问题解决指南
+VNote有两种使用方式:
+
+1. 提供笔记本、文件夹和笔记的笔记软件。VNote管理所有的数据并提供诸如附件和标签的额外功能。
+2. 编辑器。VNote提供浏览器来浏览本地文件系统并打开编辑外部文件。
+
+问题诊断步骤:
+
 1. 浏览上下文菜单、菜单栏、工具栏、设置以及帮助菜单;
 2. 更改配置可能需要重新打开当前标签页或重启VNote;
 3. 帮助菜单中包含了一份Markdown语法指南和一份快捷键指南;
@@ -18,4 +27,4 @@ VNote是**开源**的,当前主要由个人在业余时间进行开发和维
 
 Markdown愉快!
 
-<a href="https://github.com/tamlok/vnote"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_green_007200.png" alt="Fork me on GitHub"></a>
+<a href="https://github.com/tamlok/vnote"><img style="position: absolute; top: 0; left: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_left_green_007200.png" alt="Fork me on GitHub"></a>

+ 3 - 3
src/vsingleinstanceguard.cpp

@@ -4,11 +4,11 @@
 #include "utils/vutils.h"
 
 const QString VSingleInstanceGuard::c_memKey = "vnote_shared_memory";
-const int VSingleInstanceGuard::c_magic = 133191933;
+const int VSingleInstanceGuard::c_magic = 19910906;
 
 VSingleInstanceGuard::VSingleInstanceGuard()
-    : m_sharedMemory(c_memKey),
-      m_online(false)
+    : m_online(false),
+      m_sharedMemory(c_memKey)
 {
 }