Skip to content

Commit

Permalink
collapse ~ in few msgboxes
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexey-T committed Oct 27, 2022
1 parent 66e5592 commit 3f5bf38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/formframe.pas
Original file line number Diff line number Diff line change
Expand Up @@ -2807,7 +2807,7 @@ procedure TEditorFrame.DoFileReload_DisableDetectEncoding(Ed: TATSynEdit);
if SFileName='' then exit;
if Ed.Modified then
if MsgBox(
Format(msgConfirmReopenModifiedTab, [ExtractFileName(SFileName)]),
Format(msgConfirmReopenModifiedTab, [AppCollapseHomeDirInFilename(SFileName)]),
MB_OKCANCEL or MB_ICONWARNING
) <> ID_OK then exit;

Expand Down
2 changes: 1 addition & 1 deletion app/formmain.pas
Original file line number Diff line number Diff line change
Expand Up @@ -5560,7 +5560,7 @@ procedure TfmMain.DoFileReopen(Ed: TATSynEdit);

if Ed.Modified and UiOps.ReloadUnsavedConfirm then
if MsgBox(
Format(msgConfirmReopenModifiedTab, [fn]),
Format(msgConfirmReopenModifiedTab, [AppCollapseHomeDirInFilename(fn)]),
MB_OKCANCEL or MB_ICONQUESTION
) <> ID_OK then exit;

Expand Down

0 comments on commit 3f5bf38

Please sign in to comment.