Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/cicd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ jobs:
strategy:
fail-fast: false
matrix:
language: ["javascript", "python"]
language: ["python"]
steps:
- name: Checkout repository
uses: actions/checkout@v5.0.0
Expand Down
2 changes: 1 addition & 1 deletion normcap/gui/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ def _exit_application(self, delay: Seconds = 0) -> None:
logger.debug("Debug images in %s%snormcap", utils.tempfile.gettempdir(), os.sep)

# Not sure why, but quit doesn't work reliably if called directly
QtCore.QTimer.singleShot(0, lambda: self.quit())
QtCore.QTimer.singleShot(0, self.quit)

# Use harsher fallback if quit() didn't work
QtCore.QTimer.singleShot(500, lambda: sys.exit(1))
Expand Down
2 changes: 1 addition & 1 deletion normcap/gui/language_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def _on_download_error(self, reason: str, url: str) -> None:
@QtCore.Slot(bytes, str)
def _on_download_finished(self, data: bytes, url: str) -> None:
"""Save language to tessdata folder."""
file_name = url.split("/")[-1]
file_name = url.rsplit("/", maxsplit=1)[-1]
with Path(self.tessdata_path / file_name).open(mode="wb") as fh:
fh.write(data)
self._update_models()
Expand Down
2 changes: 1 addition & 1 deletion normcap/gui/update_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def _is_new_version(current: str, other: str) -> bool:
logging.debug("Discarding pre-release version %s", other)
return False

current = current.split("-")[0]
current = current.split("-", maxsplit=1)[0]
current_version = [int(c) for c in current.split(".")]
other_version = [int(c) for c in other.split(".")]
return other_version > current_version
Loading