mirror of
https://github.com/arsenetar/dupeguru.git
synced 2024-12-21 10:59:03 +00:00
Prevent zoom for images of differing dimensions
* If images are not the same size, prevent zooming features from being used by disabling the normal size button, only enable swap
This commit is contained in:
parent
9168d72f38
commit
733b3b0ed4
@ -178,7 +178,10 @@ class BaseController(QObject):
|
||||
else:
|
||||
self.referencePixmap = QPixmap(str(ref.path))
|
||||
self.parent.verticalToolBar.buttonImgSwap.setEnabled(True)
|
||||
self.parent.verticalToolBar.buttonNormalSize.setEnabled(True)
|
||||
if ref.dimensions != dupe.dimensions:
|
||||
self.parent.verticalToolBar.buttonNormalSize.setEnabled(False)
|
||||
else:
|
||||
self.parent.verticalToolBar.buttonNormalSize.setEnabled(True)
|
||||
self.updateBothImages(same_group)
|
||||
self.centerViews(same_group and self.referencePixmap.isNull())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user