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

Allow GUI to only mount as a drive letter on Windows #450

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jfantinhardesty
Copy link
Contributor

What type of Pull Request is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Describe your changes in brief

This changes the GUI to only allow mounting as a drive letter on Windows, to reduce user confusion and simplify the Windows mounting process. It replaces the browse button with one for drive letters that display the available drive letters to mount on. The old code is still there, so you can manually type a path and still mount to it, but the browse button in gone.

Checklist

  • Tested locally
  • Added new dependencies
  • Updated documentation
  • Added tests

Related Issues

  • Related Issue #
  • Closes #

@foodprocessor
Copy link
Contributor

Can you push a screenshot of this in action into this PR's description so we can see it without having to build it?

self.button_driveLetter = QtWidgets.QPushButton('Drive Letter')
self.button_driveLetter.setToolTip('Select an unused drive letter for mounting')

self.horizontalLayout_3.addWidget(self.button_driveLetter)
Copy link
Contributor

Choose a reason for hiding this comment

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

I would recommend renaming the horizontalLayout to something that can help identify where the dev is in the code with reference to the UI. For example, lineEdit_mountPoint tells us specifically what we're using and for what. Is there a way we can reference horizontalLayout_3 to something we are familiar with?

Copy link
Contributor

Choose a reason for hiding this comment

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

I realize now that a widget is being added after the UI has been compiled into a python file. Most of the elements have been added using the .ui source in QTCreator. What are you opinions in keeping to that convention, that way we don't have to rename horizontalLayout_3?

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.

3 participants