diff --git a/scripts/runtime/msai_runtime.py b/scripts/runtime/msai_runtime.py index eff5490..af13159 100644 --- a/scripts/runtime/msai_runtime.py +++ b/scripts/runtime/msai_runtime.py @@ -829,12 +829,19 @@ class MiaoshouRuntime(object): update_status = 'latest' show_update = False repo = git.Repo(self.prelude.ext_folder) + asset_repo = git.Repo(self.prelude.asset_folder) for fetch in repo.remote().fetch(dry_run=True): if fetch.flags != fetch.HEAD_UPTODATE: show_update = True update_status = "behind" break + for fetch in asset_repo.remote().fetch(dry_run=True): + if fetch.flags != fetch.HEAD_UPTODATE: + show_update = True + update_status = "behind" + break + return gr.Markdown.update(visible=True, value=update_status), gr.Checkbox.update(visible=show_update), gr.Button.update(visible=show_update) def update_program(self, dont_update_ms=False):