Skip to content

Commit 06cece5

Browse files
committed
improve warning for long input configurations
1 parent 014bcda commit 06cece5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

inputremapper/configs/input_config.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424

2525
from evdev import ecodes
2626

27+
from inputremapper.configs.paths import PathUtils
2728
from inputremapper.input_event import InputEvent
2829

2930
try:
@@ -425,9 +426,10 @@ def get_permutations(self) -> List[InputCombination]:
425426

426427
if len(self) > 6:
427428
logger.warning(
428-
"Your input combination has a length of %d, it might freeze the "
429-
"process",
429+
"Your input combination has a length of %d. Long combinations might "
430+
'freeze the process. Edit the configuration files in "%s" to fix it.',
430431
len(self),
432+
PathUtils.get_config_path(),
431433
)
432434

433435
permutations = []

0 commit comments

Comments
 (0)