move: Update to get configuration value properly

This commit is contained in:
Jordan Ruthe 2021-01-07 01:02:25 -05:00
parent 71abc27ad8
commit 934acd0ad0

View File

@ -118,7 +118,7 @@ class MovePanel(ScreenPanel):
self.labels[str(i)].set_active(False)
def move(self, widget, axis, dir):
if self._config.get_main_config_option("invert_%s" % axis.lower(), False):
if self._config.get_config().getboolean("main", "invert_%s" % axis.lower(), False):
dir = "-" if dir == "+" else "+"
dist = str(self.distance) if dir == "+" else "-" + str(self.distance)