Revert defaults, disable workflow

This commit is contained in:
Deniz Şafak
2025-07-06 04:50:24 +03:00
parent c1fb4541dc
commit 6b997d2909
3 changed files with 6 additions and 6 deletions
+4 -4
View File
@@ -2,11 +2,11 @@ name: Build multi-arch Docker Image
on: on:
# Build and push # Build and push
release: #release:
types: [published] # types: [published]
# Build only # Build only
push: #push:
branches: [main] # branches: [main]
# TODO - enable build on pull requests if build times can be reduced # TODO - enable build on pull requests if build times can be reduced
# pull_request: # pull_request:
workflow_dispatch: workflow_dispatch:
+1 -1
View File
@@ -571,7 +571,7 @@ class abogen(QWidget):
self.use_gpu = self.config.get( self.use_gpu = self.config.get(
"use_gpu", True # Load GPU setting with default True "use_gpu", True # Load GPU setting with default True
) )
self.replace_single_newlines = self.config.get("replace_single_newlines", True) self.replace_single_newlines = self.config.get("replace_single_newlines", False)
self._pending_close_event = None self._pending_close_event = None
self.gpu_ok = False # Initialize GPU availability status self.gpu_ok = False # Initialize GPU availability status
+1 -1
View File
@@ -91,7 +91,7 @@ _sleep_procs = {"Darwin": None, "Linux": None} # Store sleep prevention process
def clean_text(text, *args, **kwargs): def clean_text(text, *args, **kwargs):
# Load replace_single_newlines from config # Load replace_single_newlines from config
cfg = load_config() cfg = load_config()
replace_single_newlines = cfg.get("replace_single_newlines", True) replace_single_newlines = cfg.get("replace_single_newlines", False)
# Collapse all whitespace (excluding newlines) into single spaces per line and trim edges # Collapse all whitespace (excluding newlines) into single spaces per line and trim edges
lines = [re.sub(r"[^\S\n]+", " ", line).strip() for line in text.splitlines()] lines = [re.sub(r"[^\S\n]+", " ", line).strip() for line in text.splitlines()]
text = "\n".join(lines) text = "\n".join(lines)