Skip to content

Commit

Permalink
chore: Add layout_name warning
Browse files Browse the repository at this point in the history
  • Loading branch information
caksoylar authored Feb 24, 2025
1 parent 90feda6 commit 893cc9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions keymap_drawer/physical_layout.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,8 @@ 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

0 comments on commit 893cc9c

Please sign in to comment.