Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhmartin committed Dec 30, 2024
1 parent 06be3ab commit f1a679f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions pyspy/chkversion.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import requests
import wx

from .main import app
from . import config
# cSpell Checker - Correct Words****************************************
# // cSpell:words russsian
Expand All @@ -21,7 +20,7 @@
CURRENT_VER = config.CURRENT_VER


def chk_github_update():
def chk_github_update(app):
last_check = config.OPTIONS_OBJECT.Get("last_update_check", 0)
if last_check == 0 or last_check < datetime.date.today():
# Get latest version available on GitHub
Expand Down
2 changes: 2 additions & 0 deletions pyspy/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ def watch_clpbd():
for name in char_names:
valid = check_name_validity(name)
if valid is False:
statusmsg.push_status("Ignored invalid charnames")
break
if valid:
statusmsg.push_status("Clipboard change detected...")
Expand Down Expand Up @@ -103,6 +104,7 @@ def main():

update_checker = threading.Thread(
target=chkversion.chk_github_update,
args=(app),
daemon=True
)
update_checker.start()
Expand Down

0 comments on commit f1a679f

Please sign in to comment.