diff options
author | Stuart Langridge <sil@kryogenix.org> | 2019-06-06 11:48:16 +0100 |
---|---|---|
committer | Martin Wimpress <code@flexion.org> | 2019-06-06 13:27:41 +0100 |
commit | 34c7f63f736704633ad10036f2315d678f8fa657 (patch) | |
tree | 7fbefb53c91e8080530ebc453c021bbce40e22f1 | |
parent | Keyboard shortcuts for zooming in and out (diff) | |
download | magnus-34c7f63f736704633ad10036f2315d678f8fa657.tar.gz magnus-34c7f63f736704633ad10036f2315d678f8fa657.tar.bz2 magnus-34c7f63f736704633ad10036f2315d678f8fa657.zip |
flake8 tiny complaints
-rwxr-xr-x | magnus | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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) |