Skip to content

Commit c17843e

Browse files
authored
Merge pull request #1 from dhjw/patch-1
Thank you!
2 parents 5b8963c + bbd234e commit c17843e

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

sdbus_async/notifications/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,10 @@ def create_hints(
244244
hints_dict['x'] = ('i', xy_pos[0])
245245
hints_dict['y'] = ('i', xy_pos[1])
246246

247+
# urgency
248+
if urgency is not None:
249+
hints_dict['urgency'] = ('y', urgency)
250+
247251
return hints_dict
248252

249253

sdbus_block/notifications/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,8 @@ def create_hints(
234234
hints_dict['x'] = ('i', xy_pos[0])
235235
hints_dict['y'] = ('i', xy_pos[1])
236236

237+
# urgency
238+
if urgency is not None:
239+
hints_dict['urgency'] = ('y', urgency)
240+
237241
return hints_dict

0 commit comments

Comments
 (0)