Skip to content

Commit

Permalink
Add compact argument to result constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
friday committed Nov 6, 2022
1 parent 9e7f3dd commit 29e42bf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ulauncher/api/result.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def __init__(self,
highlightable: bool = None,
on_enter: OnEnterCallback = None,
on_alt_enter: OnEnterCallback = None,
searchable: bool = None):
searchable: bool = None,
compact: bool = None):
if not isinstance(name, str):
raise TypeError(f'"name" must be of type "str", "{type(name).__name__}" given')
if not isinstance(description, str):
Expand All @@ -40,6 +41,8 @@ def __init__(self,
self.description = description
self.keyword = keyword
self.icon = icon
if compact is not None:
self.compact = compact
if searchable is not None:
self.searchable = searchable
if highlightable is not None:
Expand Down

0 comments on commit 29e42bf

Please sign in to comment.