-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes bug where the script tab prompt does not come with a name #8761
Fixes bug where the script tab prompt does not come with a name #8761
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@derekagorhom I tried with a simple script and gave it a name and I still don't get the prompt. I assume if I didn't give a name then the Save dialog would prompt with Untitled1 as the name.
I wonder if you have fixed something different. Perhaps you could give a screen-shot of an example that you tested?
@rdstern i have made new changes to the pull request can you review this again. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@derekagorhom great. Over to you @N-thony
instat/ucrScript.vb
Outdated
@@ -214,6 +218,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(SelectedTab) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dlgSave.FileName = Path.GetFileName(TabControl.SelectedTab.Text)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fixed
instat/ucrScript.vb
Outdated
Private Function SelectedTab() As String | ||
Return TabControl.SelectedTab.Text | ||
End Function |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been removed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still looks fine. @N-thony can you now merge?
Fixes #8722
This fixes the problem of when the script tab does not prompt the user with the name.
@rdstern , @N-thony this PR is ready for review.
Thanks