mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-12 15:36:59 +08:00
Opt: Show commit info in updater
This commit is contained in:
@@ -30,6 +30,7 @@ Status:
|
||||
Running:
|
||||
Inactive:
|
||||
Warning:
|
||||
Updating:
|
||||
|
||||
MenuAlas:
|
||||
Overview:
|
||||
@@ -66,6 +67,11 @@ Update:
|
||||
UpdateFailed:
|
||||
UpdateChecking:
|
||||
UpdateCancel:
|
||||
Local:
|
||||
Upstream:
|
||||
Author:
|
||||
Time:
|
||||
Message:
|
||||
|
||||
Text:
|
||||
InvalidFeedBack:
|
||||
@@ -57,7 +57,7 @@ def name_to_function(name):
|
||||
|
||||
|
||||
class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig):
|
||||
stop_event: threading.Event
|
||||
stop_event: threading.Event = None
|
||||
bound = {}
|
||||
|
||||
# Class property
|
||||
@@ -406,7 +406,7 @@ class AzurLaneConfig(ConfigUpdater, ManualConfig, GeneratedConfig):
|
||||
bool: If task switched
|
||||
"""
|
||||
# Update event
|
||||
if hasattr(self, 'stop_event'):
|
||||
if self.stop_event is not None:
|
||||
if self.stop_event.is_set():
|
||||
return True
|
||||
prev = self.task
|
||||
|
||||
@@ -1782,7 +1782,8 @@
|
||||
"Status": {
|
||||
"Running": "Running",
|
||||
"Inactive": "Inactive",
|
||||
"Warning": "Warning"
|
||||
"Warning": "Warning",
|
||||
"Updating": "Waiting Update"
|
||||
},
|
||||
"MenuAlas": {
|
||||
"Overview": "Overview",
|
||||
@@ -1817,7 +1818,12 @@
|
||||
"UpdateRun": "Updating",
|
||||
"UpdateSuccess": "Update succeeded, restarting",
|
||||
"UpdateChecking": "Checking for updates",
|
||||
"UpdateCancel": "Update canceled, restarting Alas"
|
||||
"UpdateCancel": "Update canceled, restarting Alas",
|
||||
"Local": "Local",
|
||||
"Upstream": "Upstream",
|
||||
"Author": "Author",
|
||||
"Time": "Commit time",
|
||||
"Message": "Commit message"
|
||||
},
|
||||
"Text": {
|
||||
"InvalidFeedBack": "Invalid format. Example: {0}"
|
||||
|
||||
@@ -1782,7 +1782,8 @@
|
||||
"Status": {
|
||||
"Running": "Gui.Status.Running",
|
||||
"Inactive": "Gui.Status.Inactive",
|
||||
"Warning": "Gui.Status.Warning"
|
||||
"Warning": "Gui.Status.Warning",
|
||||
"Updating": "Gui.Status.Updating"
|
||||
},
|
||||
"MenuAlas": {
|
||||
"Overview": "Gui.MenuAlas.Overview",
|
||||
@@ -1817,7 +1818,12 @@
|
||||
"UpdateRun": "Gui.Update.UpdateRun",
|
||||
"UpdateSuccess": "Gui.Update.UpdateSuccess",
|
||||
"UpdateChecking": "Gui.Update.UpdateChecking",
|
||||
"UpdateCancel": "Gui.Update.UpdateCancel"
|
||||
"UpdateCancel": "Gui.Update.UpdateCancel",
|
||||
"Local": "Gui.Update.Local",
|
||||
"Upstream": "Gui.Update.Upstream",
|
||||
"Author": "Gui.Update.Author",
|
||||
"Time": "Gui.Update.Time",
|
||||
"Message": "Gui.Update.Message"
|
||||
},
|
||||
"Text": {
|
||||
"InvalidFeedBack": "Gui.Text.InvalidFeedBack"
|
||||
|
||||
@@ -1782,7 +1782,8 @@
|
||||
"Status": {
|
||||
"Running": "运行中",
|
||||
"Inactive": "闲置",
|
||||
"Warning": "发生错误"
|
||||
"Warning": "发生错误",
|
||||
"Updating": "等待更新"
|
||||
},
|
||||
"MenuAlas": {
|
||||
"Overview": "总览",
|
||||
@@ -1817,7 +1818,12 @@
|
||||
"UpdateRun": "更新中",
|
||||
"UpdateSuccess": "更新成功,正在重启",
|
||||
"UpdateChecking": "检查更新中",
|
||||
"UpdateCancel": "取消更新,重启 Alas 中"
|
||||
"UpdateCancel": "取消更新,重启 Alas 中",
|
||||
"Local": "本地",
|
||||
"Upstream": "上游仓库",
|
||||
"Author": "作者",
|
||||
"Time": "提交时间",
|
||||
"Message": "提交信息"
|
||||
},
|
||||
"Text": {
|
||||
"InvalidFeedBack": "格式错误。 示例:{0}"
|
||||
|
||||
@@ -1782,7 +1782,8 @@
|
||||
"Status": {
|
||||
"Running": "執行中",
|
||||
"Inactive": "閒置",
|
||||
"Warning": "發生錯誤"
|
||||
"Warning": "發生錯誤",
|
||||
"Updating": "等待更新"
|
||||
},
|
||||
"MenuAlas": {
|
||||
"Overview": "總覽",
|
||||
@@ -1817,7 +1818,12 @@
|
||||
"UpdateRun": "更新中",
|
||||
"UpdateSuccess": "更新成功,正在重啓",
|
||||
"UpdateChecking": "檢查更新中",
|
||||
"UpdateCancel": "取消更新,重啓 Alas 中"
|
||||
"UpdateCancel": "取消更新,重啓 Alas 中",
|
||||
"Local": "本地",
|
||||
"Upstream": "上游倉庫",
|
||||
"Author": "作者",
|
||||
"Time": "提交時間",
|
||||
"Message": "提交資訊"
|
||||
},
|
||||
"Text": {
|
||||
"InvalidFeedBack": "格式錯誤。 示例:{0}"
|
||||
|
||||
Reference in New Issue
Block a user