Skip to content

Commit

Permalink
Export menu fix
Browse files Browse the repository at this point in the history
- fixed wrong description of "Export As" menu in case no recent files are present in the file menu
  • Loading branch information
RhoSigma-QB64 committed Sep 11, 2024
1 parent 4345a68 commit a5e7830
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/ide/ide_methods.bas
Original file line number Diff line number Diff line change
Expand Up @@ -18516,16 +18516,16 @@ SUB IdeMakeFileMenu (eaa%) 'ExportAs activation (boolean)
'2 = left&right margin / 7 = Open '' / 3 = dots (char 250)
IF cut% > idewx - 2 - 7 THEN cut% = idewx - 2 - 7 - 3: f$ = f$ + STRING$(3, 250)
menuDesc$(m, i) = f$ + RIGHT$(IdeRecentLink(r%, 2), cut%) + "'"
ELSE
menuDesc$(m, i) = "Displays a complete list of recently loaded files"
END IF
i = i + 1
END IF
NEXT r%
DisposeBuf bh%
IF menu$(m, i - 1) <> "#Recent..." AND menu$(m, i - 1) <> eaa$ + "#Export As... " + CHR$(16) THEN
IF LEFT$(menuDesc$(m, i - 1), 4) = "Open" THEN
menu$(m, i) = "#Clear Recent...": i = i + 1
menuDesc$(m, i - 1) = "Clears list of recently loaded files"
ELSE
menuDesc$(m, i - 1) = "Displays a complete list of recently loaded files"
END IF

menu$(m, i) = "-": i = i + 1
Expand Down

0 comments on commit a5e7830

Please sign in to comment.