Bladeren bron

【what‘s new弹窗】点击标题和小标题,文案排版会变动

liujiajie 10 maanden geleden
bovenliggende
commit
eb12354133
1 gewijzigde bestanden met toevoegingen van 2 en 2 verwijderingen
  1. 2 2
      PDF Office/PDF Master/AppDelegate.swift

+ 2 - 2
PDF Office/PDF Master/AppDelegate.swift

@@ -421,7 +421,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate{
         tVersion?.applicationBundleID = Bundle.main.bundleIdentifier
 
         var tStr = "New Update Available"
-        tVersion?.updateAvailableTitle = tVersion?.localizedString(forKey: tStr, withDefault: tStr)
+        tVersion?.updateAvailableTitle = (tVersion?.localizedString(forKey: tStr, withDefault: tStr) ?? "") + "\n" 
         tVersion?.versionLabelFormat = ""
         tVersion?.groupNotesByVersion = true
         tVersion?.showOnFirstLaunch = false
@@ -439,7 +439,7 @@ class AppDelegate: NSObject, NSApplicationDelegate, iRateDelegate{
         tStr = (tVersion?.localizedString(forKey: tStr, withDefault: tStr))!
         tStr = String(format: tStr, appName)
 
-        tVersion?.inThisVersionTitle = "\n" + tStr
+        tVersion?.inThisVersionTitle = tStr
         
         tStr = "UPDATE NOW";
         tVersion!.downloadButtonLabel = tVersion?.localizedString(forKey: tStr, withDefault: tStr)