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

[BUG] Fix Exception when PathDirectory empty and click "Change to relative folder" #376

Closed
Hofknecht opened this issue Apr 30, 2022 · 0 comments
Assignees
Labels
Projects
Milestone

Comments

@Hofknecht
Copy link
Owner

Michelle reported:
System.ArgumentException: The path is empty. (Parameter 'path') at System.IO.Path.GetRelativePath(String relativeTo, String path, StringComparison comparisonType) at System.IO.Path.GetRelativePath(String relativeTo, String path) at SystemTrayMenu.UserInterface.SettingsForm.ButtonChangeRelativeFolder_Click(Object sender, EventArgs e) at System.Windows.Forms.Control.OnClick(EventArgs e) at System.Windows.Forms.Button.OnClick(EventArgs e) at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent) at System.Windows.Forms.Control.WmMouseUp(Message

Via user.config it is possible to set the path manually. When you set a empty directory like this

then start the STM, you get a dialog to choose a path.
When pressing cancel the app starts although no path is set.
Via system tray icon, right click, you can start the Settings menu and the path is empty.
Wehn then pressing "Change to relative folder", you get a ArgumentException

appeared only once and after restart you are asked to set a path, so it is uncritical

@Hofknecht Hofknecht added this to the 1.3 milestone Apr 30, 2022
@Hofknecht Hofknecht self-assigned this Apr 30, 2022
@Hofknecht Hofknecht added this to Analyze / Spec in STM 1.3.0 via automation Apr 30, 2022
Hofknecht added a commit that referenced this issue Apr 30, 2022
STM 1.3.0 automation moved this from Analyze / Spec to Closed Apr 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
STM 1.3.0
  
Closed
Development

No branches or pull requests

1 participant