feat: add "Keep transformation" to menu

This could be helpful when viewing a gallery with similar size, which
need to apply same transformation to the view. E.g. When viewing a batch
of pixel image sprite assets, the view might need to be zoomed to clearly
view the detail of the image.

Other use-case can be seen at the linked issue below.

https://github.com/BLumia/pineapple-pictures/issues/87
https://github.com/BLumia/pineapple-pictures/issues/89
This commit is contained in:
2023-10-15 17:12:46 +08:00
parent 27be83184e
commit 6e5bde68d8
3 changed files with 4 additions and 3 deletions

View File

@ -485,9 +485,7 @@ void MainWindow::contextMenuEvent(QContextMenuEvent *event)
menu->addSeparator();
menu->addAction(stayOnTopMode);
menu->addAction(protectedMode);
#if 0
menu->addAction(avoidResetTransform);
#endif // 0
menu->addSeparator();
menu->addAction(toggleSettings);
menu->addAction(helpAction);