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

Unable to remove Copy Extent Button from toolbar #64

Closed
jfbourdon opened this issue Dec 30, 2021 · 2 comments
Closed

Unable to remove Copy Extent Button from toolbar #64

jfbourdon opened this issue Dec 30, 2021 · 2 comments

Comments

@jfbourdon
Copy link

Unchecking the appropriate box in the Interface Customization options doesn't remove the Copy Extent buttons from toolbar. I tried various combinations of checked/unchecked levels without any success. However, unchecking a single button like latLonToolsCopy or latLonToolsDigitize works as it should. I wonder if it has to do with the fact that the level labeled Copy Extents to Clipboard and its upper-level aren't named.

unchecked_toolbar

My current workaround is to comment out the following lines:

# Add the copy extent tools to the toolbar
self.copyExtentButton = QToolButton()
self.copyExtentButton.setMenu(menu)
self.copyExtentButton.setDefaultAction(self.copyCanvasAction)
self.copyExtentButton.setPopupMode(QToolButton.MenuButtonPopup)
self.copyExtentButton.triggered.connect(self.copyExtentTriggered)
self.copyExtentToolbar = self.toolbar.addWidget(self.copyExtentButton)

Tested in QGIS 3.22.2 with Lat Lon Tools 3.5.9

@hamiltoncj
Copy link
Collaborator

@jfbourdon Giving the top level a name did the trick. You should be able to remove it from the toolbar now. The new version is 3.5.10. It looks like once you make changes you need to exit QGIS and relaunch it to see the change.

@jfbourdon
Copy link
Author

Thanks, all fixed now.

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

No branches or pull requests

2 participants