Skip to content

Commit

Permalink
Prepare version 4.11.4 based on novxlib 4.6.7
Browse files Browse the repository at this point in the history
- Fix a bug where an unhandled exception is raised when trying to open
the project folder while no project is open.
  • Loading branch information
peter88213 committed Sep 25, 2024
1 parent 74cfcb6 commit 187a7f7
Show file tree
Hide file tree
Showing 10 changed files with 40 additions and 25 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Download the latest release](docs/img/download-button.png)](https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.11.3.pyzw)
[![Download the latest release](docs/img/download-button.png)](https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.11.4.pyzw)
[![Changelog](docs/img/changelog-button.png)](docs/changelog.md)
[![News](docs/img/news-button.png)](https://github.com/peter88213/novelibre/discussions/1)
[![Online help](docs/img/help-button.png)](https://peter88213.github.io/nvhelp-en/)
Expand Down Expand Up @@ -81,10 +81,10 @@ I use the program myself and fix errors immediately if I notice any. As far as I

### Default: Executable Python zip archive

Download the latest release [novelibre_v4.11.3.pyzw](https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.11.3.pyzw)
Download the latest release [novelibre_v4.11.4.pyzw](https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.11.4.pyzw)

- Launch *novelibre_v4.11.3.pyzw* by double-clicking (Windows/Linux desktop),
- or execute `python novelibre_v4.11.3.pyzw` (Windows), resp. `python3 novelibre_v4.11.3.pyzw` (Linux) on the command line.
- Launch *novelibre_v4.11.4.pyzw* by double-clicking (Windows/Linux desktop),
- or execute `python novelibre_v4.11.4.pyzw` (Windows), resp. `python3 novelibre_v4.11.4.pyzw` (Linux) on the command line.

#### Important

Expand All @@ -100,9 +100,9 @@ the zip file.

### Alternative: Zip file

The package is also available in zip format: [novelibre_v4.11.3.zip](https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.11.3.zip)
The package is also available in zip format: [novelibre_v4.11.4.zip](https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.11.4.zip)

- Extract the *novelibre_v4.11.3* folder from the downloaded zipfile "novelibre_v4.11.3.zip".
- Extract the *novelibre_v4.11.4* folder from the downloaded zipfile "novelibre_v4.11.4.zip".
- Move into this new folder and launch *setup.pyw* by double-clicking (Windows/Linux desktop),
- or execute `python setup.pyw` (Windows), resp. `python3 setup.pyw` (Linux) on the command line.

Expand Down
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[LATEST]
version = 4.11.3
download_link = https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.11.3.pyzw
version = 4.11.4
download_link = https://github.com/peter88213/novelibre/raw/main/dist/novelibre_v4.11.4.pyzw
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@

See the [GitHub "Features" project](https://github.com/users/peter88213/projects/14).

### Version 4.11.4

- Fix a bug where an unhandled exception is raised when trying to open the project folder while no project is open.

Based on novxlib 4.6.7

### Version 4.11.3

- Fix a bug where an unhandled exception is raised when trying automatically unlock an unnamed new project.
Expand Down
6 changes: 3 additions & 3 deletions i18n/de.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 4.11.3\n"
"POT-Creation-Date: 2024-09-25 13:45:59\n"
"PO-Revision-Date: 2024-09-25 13:45:59\n"
"Project-Id-Version: 4.11.4\n"
"POT-Creation-Date: 2024-09-25 18:15:37\n"
"PO-Revision-Date: 2024-09-25 18:15:37\n"
"Last-Translator: Peter Triesberger\n"
"Language: de\n"
"MIME-Version: 1.0\n"
Expand Down
Binary file modified i18n/locale/de/LC_MESSAGES/novelibre.mo
Binary file not shown.
4 changes: 2 additions & 2 deletions i18n/messages.pot
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
#
msgid ""
msgstr ""
"Project-Id-Version: 4.11.3\n"
"POT-Creation-Date: 2024-09-25 13:45:59\n"
"Project-Id-Version: 4.11.4\n"
"POT-Creation-Date: 2024-09-25 18:15:37\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language: LANGUAGE\n"
Expand Down
31 changes: 20 additions & 11 deletions src/nvlib/controller/nv_controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,21 +883,30 @@ def open_project(self, event=None, filePath='', doNotSave=False):

def open_project_folder(self, event=None):
"""Open the project folder with the OS file manager."""
if (self._mdl and self._mdl.prjFile.filePath is not None) or self.save_project():
projectDir, __ = os.path.split(self._mdl.prjFile.filePath)
if not self.save_project():
if not self._mdl:
return

if not self._mdl.prjFile:
return

if self._mdl.prjFile.filePath is None:
return

projectDir, __ = os.path.split(self._mdl.prjFile.filePath)
try:
os.startfile(norm_path(projectDir))
# Windows
except:
try:
os.startfile(norm_path(projectDir))
# Windows
os.system('xdg-open "%s"' % norm_path(projectDir))
# Linux
except:
try:
os.system('xdg-open "%s"' % norm_path(projectDir))
# Linux
os.system('open "%s"' % norm_path(projectDir))
# Mac
except:
try:
os.system('open "%s"' % norm_path(projectDir))
# Mac
except:
pass
pass
return 'break'

def refresh(self):
Expand Down
2 changes: 1 addition & 1 deletion tools/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
sys.path.insert(0, f'{os.getcwd()}/../../novelibre/tools')
from package_builder import PackageBuilder

VERSION = '4.11.3'
VERSION = '4.11.4'


class ApplicationBuilder(PackageBuilder):
Expand Down

0 comments on commit 187a7f7

Please sign in to comment.