From 1dc6b49e02cd1c0fffdd598b907bd6c784dab0f7 Mon Sep 17 00:00:00 2001 From: James Reid Date: Mon, 30 May 2022 19:17:07 +0100 Subject: [PATCH] Remove hard coded tab string in ThemesHandler Remove hard coded tab string and replace with self.tabs, which is a reference to the same tab string defined in the __init__ of ThemesHandler --- kittens/themes/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kittens/themes/main.py b/kittens/themes/main.py index 50e6bc513..8554aa5d8 100644 --- a/kittens/themes/main.py +++ b/kittens/themes/main.py @@ -389,7 +389,7 @@ class ThemesHandler(Handler): if key_event.matches('esc') or key_event.matches_text('q'): self.quit_on_next_key_release = 0 return - for cat in 'all dark light recent'.split(): + for cat in self.tabs: if key_event.matches_text(cat[0]) or key_event.matches(f'alt+{cat[0]}'): if cat != self.current_category: self.current_category = cat