Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix CLI layout args overriding keymap ones #159

Merged
merged 2 commits into from
Feb 24, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: Add layout_name warning
  • Loading branch information
caksoylar committed Feb 24, 2025
commit 7a02206497236a1bced589c69f0994234d7b372b
4 changes: 4 additions & 0 deletions keymap_drawer/physical_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,10 @@ def handle_qmk_layout(self):
logger.warning('"qmk_layout" is deprecated, please use "layout_name" instead')
assert self.layout_name is None, '"qmk_layout" cannot be used with "layout_name", use the latter'
self.layout_name = self.qmk_layout
if self.layout_name is not None and (self.ortho_layout is not None or self.cols_thumbs_notation is not None):
logger.warning(
'"layout_name" cannot be used with "ortho_layout" or "cols_thumbs_notation", will be ignored'
)
return self

def generate(self) -> PhysicalLayout:
Expand Down