Fix a gen-config bug that was causing macos shortcuts to be defined on linux as well
This commit is contained in:
@@ -270,8 +270,9 @@ def generate_class(defn: Definition, loc: str) -> Tuple[str, str]:
|
||||
text = sc.parseable_text
|
||||
if sc.only:
|
||||
only.setdefault(sc.only, []).append((text, func))
|
||||
for val in func(text):
|
||||
a(f' {val!r},')
|
||||
else:
|
||||
for val in func(text):
|
||||
a(f' {val!r},')
|
||||
a(']')
|
||||
if only:
|
||||
imports.add(('kitty.constants', 'is_macos'))
|
||||
|
||||
Reference in New Issue
Block a user