Changeset 134
- Timestamp:
- Mar 5, 2022, 9:27:57 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r133 r134 187 187 SCloseProjectFirst = 'Project need to be closed before it can be openned'; 188 188 SError = 'Error'; 189 SFileNotFound = 'File %s not found.'; 189 190 190 191 { TFormMain } … … 196 197 PageControlMain.TabIndex := 0; 197 198 try 198 if Core.OpenProjectOnStart and (Core.LastOpenedList.Items.Count > 0) then 199 if Core.OpenProjectOnStart and (Core.LastOpenedList.Items.Count > 0) and 200 FileExists(Core.LastOpenedList.Items[0]) then 199 201 ProjectOpen(Core.LastOpenedList.Items[0]) 200 202 else AProjectNew.Execute; … … 669 671 670 672 procedure TFormMain.AProjectOpenRecentExecute(Sender: TObject); 671 begin 672 AProjectClose.Execute; 673 if Core.Project.Openned then Exit; 674 ProjectOpen(Core.LastOpenedList.Items[TMenuItem(Sender).MenuIndex]); 673 var 674 FileName: string; 675 begin 676 FileName := Core.LastOpenedList.Items[TMenuItem(Sender).MenuIndex]; 677 if FileExists(FileName) then begin 678 AProjectClose.Execute; 679 if Core.Project.Openned then Exit; 680 ProjectOpen(FileName); 681 end else ShowMessage(Format(SFileNotFound, [FileName])); 675 682 end; 676 683 -
trunk/Languages/LazFuck.cs.po
r133 r134 17 17 18 18 #: tformcompilemultiple.buttoncancel.caption 19 #, fuzzy20 19 msgctxt "tformcompilemultiple.buttoncancel.caption" 21 20 msgid "Cancel" … … 552 551 msgstr "Chyba" 553 552 553 #: uformmain.sfilenotfound 554 #, object-pascal-format 555 msgid "File %s not found." 556 msgstr "Soubor %s nenalezen." 557 554 558 #: uformmain.snewproject 555 559 msgid "New project" … … 615 619 msgid "Unsupported command" 616 620 msgstr "NepodporovanÃœ pÅÃkaz" 617 -
trunk/Languages/LazFuck.pot
r133 r134 541 541 msgstr "" 542 542 543 #: uformmain.sfilenotfound 544 #, object-pascal-format 545 msgid "File %s not found." 546 msgstr "" 547 543 548 #: uformmain.snewproject 544 549 msgid "New project"
Note:
See TracChangeset
for help on using the changeset viewer.