Selaa lähdekoodia

【多页签】Tab Title看是否能只显示文件名

lizhe 6 kuukautta sitten
vanhempi
commit
9456dfcb8c

+ 2 - 0
PDF Office/PDF Master/Class/ChromiumTabs/src/Tab Strip/CTTabStripController.m

@@ -1047,6 +1047,8 @@ const NSTimeInterval kAnimationDuration = 0.125;
 		titleString = contents.title;
 	if (!titleString || ![titleString length])
 		titleString = L10n(@"New Tab");
+    
+    titleString = titleString.stringByDeletingPathExtension;
 	[tab setTitle:titleString];
 }