mirror of
https://github.com/vladmandic/automatic
synced 2026-09-19 09:14:35 +02:00
add legacy mode indicator on splash screen
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -16,6 +16,8 @@ def get_motd():
|
||||
ver = shared.get_version()
|
||||
if ver.get('updated', None) is not None:
|
||||
motd = f"version <b>{ver['hash']} {ver['updated']}</b> <span style='color: var(--primary-500)'>{ver['url'].split('/')[-1]}</span><br>"
|
||||
if not shared.native:
|
||||
motd += "<span style='color: orange'>Legacy mode</span><br>"
|
||||
if shared.opts.motd:
|
||||
try:
|
||||
res = requests.get('https://vladmandic.github.io/automatic/motd', timeout=3)
|
||||
|
||||
Reference in New Issue
Block a user