Jelajahi Sumber

:art: 非桌面端跳过新版本安装包下载

Liang Ding 2 tahun lalu
induk
melakukan
e058890d8f
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  1. 1 1
      app/src/config/about.ts
  2. 1 1
      kernel/model/updater.go

+ 1 - 1
app/src/config/about.ts

@@ -24,7 +24,7 @@ export const about = {
     <div class="fn__space"></div>
     <input class="b3-switch fn__flex-center" id="autoLaunch" type="checkbox"${window.siyuan.config.system.autoLaunch ? " checked" : ""}>
 </label>
-<label class="fn__flex b3-label${isBrowser() || window.siyuan.config.system.isMicrosoftStore ? " fn__none" : ""}">
+<label class="fn__flex b3-label${isBrowser() || window.siyuan.config.system.isMicrosoftStore || window.siyuan.config.system.container !== "std" ? " fn__none" : ""}">
     <div class="fn__flex-1">
         ${window.siyuan.languages.autoDownloadUpdatePkg}
         <div class="b3-label__text">${window.siyuan.languages.autoDownloadUpdatePkgTip}</div>

+ 1 - 1
kernel/model/updater.go

@@ -286,7 +286,7 @@ func skipNewVerInstallPkg() bool {
 	if !gulu.OS.IsWindows() && !gulu.OS.IsDarwin() && !gulu.OS.IsLinux() {
 		return true
 	}
-	if util.ISMicrosoftStore {
+	if util.ISMicrosoftStore || util.ContainerStd != util.Container {
 		return true
 	}
 	if !Conf.System.DownloadInstallPkg {