diff --git a/src/modules/Core/GachaReport/Analysis/analysis.py b/src/modules/Core/GachaReport/Analysis/analysis.py index 70893af..d49301d 100644 --- a/src/modules/Core/GachaReport/Analysis/analysis.py +++ b/src/modules/Core/GachaReport/Analysis/analysis.py @@ -79,13 +79,13 @@ def get_star_3_amount_to_string(self): def get_star_5_percent_to_string(self): if self.total_amount: - return f"{round(self.star_5_amount / self.total_amount, 2)}%" + return f"{round(self.star_5_amount / self.total_amount * 100, 2)}%" else: return "0.00%" def get_star_4_percent_to_string(self): if self.total_amount: - return f"{round(self.star_4_amount / self.total_amount, 2)}%" + return f"{round(self.star_4_amount / self.total_amount * 100, 2)}%" else: return "0.00%" diff --git a/src/modules/Views/settings_frame.py b/src/modules/Views/settings_frame.py index d7a4cb8..778c21a 100644 --- a/src/modules/Views/settings_frame.py +++ b/src/modules/Views/settings_frame.py @@ -293,13 +293,14 @@ def isNeedUpdateThreadStatusChanged(self, status, content): InfoBar.error("错误", content, InfoBarPosition.TOP_RIGHT, parent=self) elif status == 0: self.newVersion = content - self.isNeedUpdateThreadStateTooltip.setState(True) - self.isNeedUpdateThreadStateTooltip = None w = ComboboxDialog("更新", f"发现新版本: {self.newVersion['tag_name']}\n是否更新?", ["Coding Artifact (国内推荐)", "Github Release (国外推荐)"], self) w.returnSignal.connect(self.__updateReturnSignal) w.exec() + self.isNeedUpdateThreadStateTooltip.setState(True) + self.isNeedUpdateThreadStateTooltip = None + def __updateCheckCardClicked(self): self.updateCheckCard.setEnabled(False) self.isNeedUpdateThread = IsNeedUpdateThread(utils.app_version) diff --git a/src/modules/constant.py b/src/modules/constant.py index e644dcb..08aabca 100644 --- a/src/modules/constant.py +++ b/src/modules/constant.py @@ -1,4 +1,4 @@ -APP_VERSION = "0.2.2" +APP_VERSION = "0.2.3" UI_VERSION = "0.9.0" SRGF_GACHATYPE = {"2": "2", "1": "1", "11": "11", "12": "12"}