Skip to content

Commit

Permalink
Reduced size of save notification for existing files in full screen mode
Browse files Browse the repository at this point in the history
Fixes #151
  • Loading branch information
Cuperino committed Feb 4, 2023
1 parent e0b27b4 commit 5ef0f73
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/prompter/Prompter.qml
Original file line number Diff line number Diff line change
Expand Up @@ -1140,8 +1140,12 @@ Flickable {
saveAsDialog()
else {
document.modified = false
if (Qt.platform.os==="android" || Qt.platform.os==="ios" || visibility===ApplicationWindow.FullScreen)
showPassiveNotification(i18nc("Saved FILE_NAME", "Saved %1", document.fileUrl))
if (Qt.platform.os==="android" || Qt.platform.os==="ios" || visibility===ApplicationWindow.FullScreen) {
if (document.isNewFile)
showPassiveNotification(i18nc("Saved FILE_NAME", "Saved %1", document.fileUrl))
else
showPassiveNotification(i18n("Saved"))
}
document.saveAs(document.fileUrl)
//if (quit)
//Qt.quit()
Expand Down

0 comments on commit 5ef0f73

Please sign in to comment.