Skip to content
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

Merged

Conversation

derekagorhom
Copy link
Contributor

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

@derekagorhom derekagorhom changed the title Fixes bug where the script tab does not come with a name Fixes bug where the script tab prompt does not come with a name Jan 24, 2024
Copy link
Collaborator

@rdstern rdstern left a 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?

@derekagorhom
Copy link
Contributor Author

@rdstern i have made new changes to the pull request can you review this again.
Thanks

rdstern
rdstern previously approved these changes Jan 26, 2024
Copy link
Collaborator

@rdstern rdstern left a 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

@@ -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)
Copy link
Collaborator

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)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is fixed

Comment on lines 199 to 201
Private Function SelectedTab() As String
Return TabControl.SelectedTab.Text
End Function
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been removed

Copy link
Collaborator

@rdstern rdstern left a 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?

@N-thony N-thony merged commit adda798 into IDEMSInternational:master Jan 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

The rename of a script tab does not prompt with the name
3 participants