浏览代码

!88 Fix build error and the shortcut problem under Ubuntu
Merge pull request !88 from tangramor/master

爬山虎 2 年之前
父节点
当前提交
f121bcb86b
共有 2 个文件被更改,包括 6 次插入7 次删除
  1. 1 1
      src/cceditor/ccnotepad.cpp
  2. 5 6
      src/linux/usr/share/applications/NotePad--.desktop

+ 1 - 1
src/cceditor/ccnotepad.cpp

@@ -5347,7 +5347,7 @@ void hide_file(const QString& szFile)
 //isBakWrite 是否写保护swp文件,默认true。只有新文件时不需要,因为新文件不存在覆盖写的问题
 //isStatic 是否静默:不弹出对话框,在外部批量查找替换文件夹时使用,避免弹窗中断。默认false
 //isClearSwpFile:是否回收swp交换文件,在外部批量查找替换文件夹时使用,替换后直接删除swp文件。默认false
-bool  CCNotePad::saveFile(QString fileName, ScintillaEditView* pEdit, bool isBakWrite, bool isStatic,bool /*isClearSwpFile*/)
+bool  CCNotePad::saveFile(QString fileName, ScintillaEditView* pEdit, bool isBakWrite, bool isStatic, bool isClearSwpFile)
 {
 	QFile srcfile(fileName);
 	

+ 5 - 6
src/linux/usr/share/applications/io.gitee.cxasm.notepad--.desktop → src/linux/usr/share/applications/NotePad--.desktop

@@ -1,13 +1,12 @@
 [Desktop Entry]
 Version=1.0
-Name=Notepad--
-Name[zh_CN]=Notepad--
-Comment=Notepad-- 是一个国产跨平台、简单的文本编辑器。
+Name=NotePad--
+Name[zh_CN]=NotePad--
+Comment=NotePad-- 是一个国产跨平台、简单的文本编辑器。
 Type=Application
-Exec=notepad-- %F 
-Icon=notepad--
+Exec=NotePad-- %F 
+Icon=/usr/share/icons/hicolor/128x128/apps/notepad--.png
 Categories=Development;Office;
 Terminal=false
 MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;text/x-chdr;text/x-csrc;text/x-java;text/x-moc;text/x-pascal;text/x-tcl;text/x-tex;application/x-shellscript;text/x-patch;text/x-adasrc;text/x-chdr;text/x-csrc;text/css;application/x-desktop;text/x-patch;text/x-fortran;text/html;text/x-java;text/x-tex;text/x-makefile;text/x-objcsrc;text/x-pascal;application/x-perl;application/x-perl;application/x-php;text/vnd.wap.wml;text/x-python;application/x-ruby;text/sgml;application/xml;model/vrml;image/svg+xml;application/json;
 
-# Generated from the DesktopGenerater component of the z-Tools toolkit