From 34c7f63f736704633ad10036f2315d678f8fa657 Mon Sep 17 00:00:00 2001 From: Stuart Langridge Date: Thu, 6 Jun 2019 11:48:16 +0100 Subject: flake8 tiny complaints --- magnus | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/magnus b/magnus index c039c94..d6bcb4d 100755 --- a/magnus +++ b/magnus @@ -121,14 +121,16 @@ class Main(object): def zoom_out(self, keypress, zoom): current_index = zoom.get_active() - if current_index == 0: return + if current_index == 0: + return zoom.set_active(current_index - 1) self.set_zoom(zoom) def zoom_in(self, keypress, zoom): current_index = zoom.get_active() size = zoom.get_model().iter_n_children(None) - if current_index == size - 1: return + if current_index == size - 1: + return zoom.set_active(current_index + 1) self.set_zoom(zoom) -- cgit