Skip to content

Commit e23e9c1

Browse files
committed
fix: long file names in dekstop apps will disable refresh buton in live preview
1 parent 04778b1 commit e23e9c1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/document/DocumentCommandHandlers.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,10 @@ define(function (require, exports, module) {
285285

286286

287287
if (currentlyViewedPath) {
288-
_$title.text(_currentTitlePath);
288+
if(!Phoenix.isNativeApp) {
289+
// in native app, the app titlebar will have the file name and the title text section in not there.
290+
_$title.text(_currentTitlePath);
291+
}
289292
_$title.attr("title", currentlyViewedPath);
290293
if (currentDoc) {
291294
// dirty dot is always in DOM so layout doesn't change, and visibility is toggled

0 commit comments

Comments
 (0)