-
Notifications
You must be signed in to change notification settings - Fork 2
settings tab #109
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
settings tab #109
Conversation
415c856
to
a19bb12
Compare
console_backend/src/settings_tab.rs
Outdated
|
||
pub fn import(&mut self, path: String) -> Result<()> { | ||
let mut f = { | ||
let path = PathBuf::from(path.trim_start_matches("file://")); |
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.
Might need to test this functionality on windows. I have experienced issues in the past with an additional slash. See:
https://github.com/swift-nav/console_pp/blob/d0995c42c0a1bbd08b1ca39b27e5d505f4c2284e/resources/UpdateTabComponents/FileIOSelectLocalFileAndDestPath.qml#L99
What I was seeing is that the returned path would have a prefix with three slashes file:///
and replacing this with an empty string would work for windows but kill the root /
for unix i.e. file:///usr/bin
would become usr/bin
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.
I'll do some quick testing on Windows to see what happens
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.
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.
Moved the leading '/' fix into Utils.fileUrlToString and switched the import/export to use that helper so should be good
bd58702
to
fe416bf
Compare
fe416bf
to
e9da34e
Compare
So it looks like there is no special case for this setting, rather the old console will update the |
No description provided.