Преглед на файлове

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

liujiajie преди 10 месеца
родител
ревизия
eb12354133
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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)