Skip to content

Commit

Permalink
Merge pull request #8761 from derekagorhom/Fixes_script_tab_prompt
Browse files Browse the repository at this point in the history
Fixes bug where the script tab prompt does not come with a name
  • Loading branch information
N-thony authored Jan 30, 2024
2 parents ae4821b + cd1b6c7 commit adda798
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions instat/ucrScript.vb
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ Public Class ucrScript
Using dlgSave As New SaveFileDialog
dlgSave.Title = "Save " & If(bIsLog, "Log", "Script") & " To File"
dlgSave.Filter = "R Script File (*.R)|*.R|Text File (*.txt)|*.txt"
dlgSave.FileName = Path.GetFileName(TabControl.SelectedTab.Text)

'Ensure that dialog opens in correct folder.
'In theory, we should be able to use `dlgLoad.RestoreDirectory = True` but this does
Expand Down

0 comments on commit adda798

Please sign in to comment.