From 03c060da9a4c865c9839bf716bcd6173973dc182 Mon Sep 17 00:00:00 2001 From: Armaan Bhojwani Date: Sat, 13 Feb 2021 12:43:56 -0500 Subject: [PATCH] Implement show_menu_at_end config option --- config.py | 1 + lightcards/display.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 46d6bf0..566ebcf 100644 --- a/config.py +++ b/config.py @@ -47,6 +47,7 @@ view_three = "3" # OTHER confirm_quit = True +show_menu_at_end = True debug = False ############################################################################### diff --git a/lightcards/display.py b/lightcards/display.py index 386058f..f03620c 100644 --- a/lightcards/display.py +++ b/lightcards/display.py @@ -477,7 +477,8 @@ class Display: self.disp_card() elif key in self.config["card_next"]: if self.obj.index + 1 == len(self.stack): - self.menu_obj.disp() + if self.config["show_menu_at_end"]: + self.menu_obj.disp() else: self.obj.forward(self.stack) self.current_card().side = 0 -- 2.39.2