chore: removed unnecessary warning
This commit is contained in:
@@ -4,8 +4,6 @@ export const InfoStrings = {
|
|||||||
'This backup file was created using a newer version of the application and cannot be imported here. Please update your application and try again.',
|
'This backup file was created using a newer version of the application and cannot be imported here. Please update your application and try again.',
|
||||||
BackupFileMoreRecentThanAccount:
|
BackupFileMoreRecentThanAccount:
|
||||||
"This backup file was created using a newer encryption version than your account's. Please run the available encryption upgrade and try again.",
|
"This backup file was created using a newer encryption version than your account's. Please run the available encryption upgrade and try again.",
|
||||||
SavingWhileDocumentHidden:
|
|
||||||
'Attempting to save an item while the application is hidden. To protect data integrity, please refresh the application window and try again.',
|
|
||||||
InvalidNote:
|
InvalidNote:
|
||||||
"The note you are attempting to save can not be found or has been deleted. Changes you make will not be synced. Please copy this note's text and start a new note.",
|
"The note you are attempting to save can not be found or has been deleted. Changes you make will not be synced. Please copy this note's text and start a new note.",
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -235,10 +235,6 @@ export class NoteViewController implements ItemViewControllerInterface {
|
|||||||
|
|
||||||
const isTemplate = this.isTemplateNote
|
const isTemplate = this.isTemplateNote
|
||||||
|
|
||||||
if (typeof document !== 'undefined' && document.hidden) {
|
|
||||||
void this.application.alertService.alert(InfoStrings.SavingWhileDocumentHidden)
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isTemplate) {
|
if (isTemplate) {
|
||||||
await this.insertTemplatedNote()
|
await this.insertTemplatedNote()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user