mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-05 09:57:04 +01:00
IDE: removed "Cancel" button (does not make any difference with "No" in logic) in revert confirmation, improved newly added captions
This commit is contained in:
parent
7208ff44ae
commit
44e8349f9a
@ -272,7 +272,7 @@ resourcestring
|
||||
lisMenuOpen = '&Open ...';
|
||||
lisMenuOpenUnit = 'Open Unit ...';
|
||||
lisMenuRevert = 'Revert';
|
||||
lisMenuRevertConfirm = 'Discard all unsaved changes in this file?%s %s%sThis action will affect all tabs with the same file and it cannot be undone.';
|
||||
lisMenuRevertConfirm = 'Discard all unsaved changes in' + LineEnding + '"%s"?' + LineEnding + LineEnding + 'This action cannot be undone and will affect all editor tabs with the file.';
|
||||
lisPESavePackageAs = 'Save Package As ...';
|
||||
lisPkgEditPublishPackage = 'Publish Package';
|
||||
lisPERevertPackage = 'Revert Package';
|
||||
@ -1285,7 +1285,7 @@ resourcestring
|
||||
dlgSetActiveDesktopBtnCaption = 'Set active';
|
||||
dlgSetActiveDesktopBtnHint = 'Set active';
|
||||
dlgResetActiveDesktopBtnCaption = 'Restore active';
|
||||
dlgResetActiveDesktopBtnHint = 'Restore active window layout';
|
||||
dlgResetActiveDesktopBtnHint = 'Restore window layout of active desktop';
|
||||
dlgToggleDebugDesktopBtnCaption = 'Toggle as debug desktop';
|
||||
dlgToggleDebugDesktopBtnHint = 'Toggle as debug desktop';
|
||||
dlgDesktopName = 'Desktop name';
|
||||
|
||||
@ -3355,9 +3355,9 @@ begin
|
||||
if (SourceEditorManager.ActiveSourceWindowIndex < 0)
|
||||
or (SourceEditorManager.ActiveSourceWindow.PageIndex < 0) then exit;
|
||||
|
||||
if IDEMessageDialog(lisConfirm, Format(lisMenuRevertConfirm, [LineEnding,
|
||||
SourceEditorManager.ActiveSourceWindow.ActiveEditor.FileName,
|
||||
LineEnding + LineEnding]), mtConfirmation, mbYesNoCancel) <> mrYes
|
||||
if IDEMessageDialog(lisConfirm, Format(lisMenuRevertConfirm,
|
||||
[SourceEditorManager.ActiveSourceWindow.ActiveEditor.FileName]),
|
||||
mtConfirmation, mbYesNo) <> mrYes
|
||||
then exit;
|
||||
|
||||
DoOpenEditorFile('', SourceEditorManager.ActiveSourceWindow.PageIndex,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user