diff --git a/scc/constants.py b/scc/constants.py index db9fb53de..54458a16e 100644 --- a/scc/constants.py +++ b/scc/constants.py @@ -28,7 +28,7 @@ If SC-Controller is updated while daemon is running, DAEMON_VERSION send by daemon will differ one one expected by UI and daemon will be forcefully restarted. """ -DAEMON_VERSION = "0.4" +DAEMON_VERSION = "0.4.0.1" HPERIOD = 0.02 LPERIOD = 0.5 diff --git a/scc/gui/app.py b/scc/gui/app.py index 5d9540ba8..6e16e07d9 100644 --- a/scc/gui/app.py +++ b/scc/gui/app.py @@ -1418,7 +1418,9 @@ def get_release(n=3): Returns current version rounded to max. 'n' numbers. ( v0.14.1.3 ; n=3 -> v0.14.1 ) """ - return ".".join(DAEMON_VERSION.split(".")[0:n]) + split = DAEMON_VERSION.split(".")[0:n] + while split[-1] == "0": split = split[0:len(split) - 1] + return ".".join(split) def release_notes_visible(self):