diff --git a/pysollib/ui/tktile/menubar.py b/pysollib/ui/tktile/menubar.py index c7998cfc..9fb6ee19 100644 --- a/pysollib/ui/tktile/menubar.py +++ b/pysollib/ui/tktile/menubar.py @@ -540,6 +540,10 @@ class PysolMenubarTkCommon: submenu.add_command( label=n_("&Decrease the card size"), command=self.mDecreaseCardset, accelerator=m+"-") + submenu.add_command( + label=n_("&Reset the card size"), + command=self.mResetCardset) + submenu.add_separator() submenu.add_checkbutton( label=n_("&Auto scaling"), variable=self.tkopt.auto_scale, command=self.mOptAutoScale, accelerator=m+'0') @@ -1517,6 +1521,16 @@ Unsupported game for import. self.tkopt.auto_scale.set(False) self._updateCardSize() + def mResetCardset(self, *event): + if self._cancelDrag(break_pause=True): + return + self.app.opt.scale_x = 1 + self.app.opt.scale_y = 1 + + self.app.opt.auto_scale = False + self.tkopt.auto_scale.set(False) + self._updateCardSize() + def mOptAutoScale(self, *event): if self._cancelDrag(break_pause=True): return