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

Fix file name extension in $filename value #120

Merged
merged 1 commit into from
Apr 9, 2023

Conversation

scerzh
Copy link

@scerzh scerzh commented Apr 5, 2023

Configuration file describes $filename variable as the new file name without path and without extension, but the new file dialog always shows metadata with the variable replaced by the filename with the extension. Path.GetFileName function was called to obtain the $filename value but it leaves the extension untouched. I propose Path.GetFileNameWithoutExtension be called instead. Here is the screenshot of the issue:
pass-winmenu-bug

Configuration file describes $filename variable as the new file name
without path and without extension, but new file dialog always shows
metadata with the variable replaced by the filename with the extension.
@geluk
Copy link
Owner

geluk commented Apr 9, 2023

Sensible suggestion, thanks for the PR!

@geluk geluk merged commit e4801ae into geluk:master Apr 9, 2023
@scerzh scerzh deleted the bugfix/filename-ext branch April 9, 2023 20:17
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.

2 participants