Skip to content

Commit

Permalink
Merge pull request QB64-Phoenix-Edition#477 from a740g/main
Browse files Browse the repository at this point in the history
Open GUI file dialog when Ctrl+S is pressed
  • Loading branch information
a740g committed Apr 6, 2024
2 parents e56a807 + 76b0f76 commit 61096dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/ide/ide_methods.bas
Original file line number Diff line number Diff line change
Expand Up @@ -3463,8 +3463,9 @@ FUNCTION ide2 (ignore)
IF KCONTROL AND UCASE$(K$) = "S" THEN 'File -> #Save
IF ideprogname = "" THEN
ProposedTitle$ = FindProposedTitle$
IF ProposedTitle$ = "" THEN
a$ = idefiledialog$("untitled" + tempfolderindexstr$ + ".bas", 2)
IF ProposedTitle$ = "" THEN ProposedTitle$ = "untitled" + tempfolderindexstr$
IF UseGuiDialogs THEN
a$ = Savefile$(ProposedTitle$ + ".bas")
ELSE
a$ = idefiledialog$(ProposedTitle$ + ".bas", 2)
END IF
Expand Down

0 comments on commit 61096dd

Please sign in to comment.