mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 22:28:24 +02:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user