From 7526c8e4f548dbe168020dc1366b1f1e90439f48 Mon Sep 17 00:00:00 2001 From: mbridak Date: Sun, 29 Dec 2024 13:31:41 -0800 Subject: [PATCH] Add {LOGIT} macro. --- CHANGELOG.md | 1 + README.md | 2 ++ not1mm/__main__.py | 5 ++++- not1mm/lib/version.py | 2 +- pyproject.toml | 2 +- 5 files changed, 9 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f22f7c..582f117 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Changelog +- [24-12-29] Add {LOGIT} macro. - [24-12-15] Fixed Button focus policy in the bandmap window. - [24-12-14] Changed method of detecting fldigi QSOs. See docs. - [24-12-12] Add a try exception for a unicode decode error. diff --git a/README.md b/README.md index f0bd0a6..f648a33 100644 --- a/README.md +++ b/README.md @@ -208,6 +208,7 @@ generated, 'cause I'm lazy, list of those who've submitted PR's. ## Recent Changes (Polishing the Turd) +- [24-12-29] Add {LOGIT} macro. - [24-12-15] Fixed Button focus policy in the bandmap window. - [24-12-14] Changed method of detecting fldigi QSOs. See docs. - [24-12-12] Add a try exception for a unicode decode error. @@ -657,6 +658,7 @@ You can include a limited set of substitution instructions. | {SNT} | Sends 5nn (cw) or 599 (ssb) | | {SENTNR} | Sends whats in the SentNR field. | | {EXCH} | Sends what's in the Sent Exchange field when contest is defined. | +| {LOGIT} | Log the contact after macro pressed. | | '#' | Sends serial number. | ### Macro use with voice diff --git a/not1mm/__main__.py b/not1mm/__main__.py index e361ac7..69eae68 100644 --- a/not1mm/__main__.py +++ b/not1mm/__main__.py @@ -1742,7 +1742,7 @@ def show_key_help(self) -> None: """ self.show_message_box( - "[CTRL-Esc]\tStops cwdaemon from sending Morse.\n" + "[ESC]\tStops cwdaemon from sending Morse.\n" "[PgUp]\tIncreases the cw sending speed.\n" "[PgDown]\tDecreases the cw sending speed.\n" "[Arrow-Up] Jump to the next spot above the current VFO cursor\n" @@ -2731,6 +2731,9 @@ def process_macro(self, macro: str) -> str: macro = macro.replace( "{EXCH}", self.contest_settings.get("SentExchange", "xxx") ) + if "{LOGIT}" in macro: + macro = macro.replace("{LOGIT}", "") + self.save_contact() return macro def ptt_on(self) -> None: diff --git a/not1mm/lib/version.py b/not1mm/lib/version.py index 4ce5601..c735bd2 100644 --- a/not1mm/lib/version.py +++ b/not1mm/lib/version.py @@ -1,3 +1,3 @@ """It's the version""" -__version__ = "24.12.15" +__version__ = "24.12.29" diff --git a/pyproject.toml b/pyproject.toml index e82f5ff..15a48ed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "not1mm" -version = "24.12.15" +version = "24.12.29" description = "NOT1MM Logger" readme = "README.md" requires-python = ">=3.9"