Skip to content

Commit

Permalink
Merge pull request #286 from ItachiSan/fix-issues
Browse files Browse the repository at this point in the history
fix: Small fixes identified when creating my pull requests
  • Loading branch information
l0drex authored Apr 3, 2024
2 parents 72f18bf + 0775677 commit f855d77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion yin_yang/NotificationHandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
class NotificationHandler(Handler):
"""Shows logs as notifications"""
def emit(self, record):
subprocess.call(['notify-send', record.levelname, record.msg,
subprocess.call(['notify-send', record.levelname, str(record.msg),
'-a', 'Yin & Yang', '-u', 'low', '--icon', 'yin_yang'])
2 changes: 1 addition & 1 deletion yin_yang/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ def defaults(self) -> dict:

# NOTE: if you change or add new values here, make sure to update the version number and update_config() method
conf_default = {
'version': 3.3,
'version': 3.4,
'running': False,
'dark_mode': False,
'mode': Modes.MANUAL.value,
Expand Down
2 changes: 1 addition & 1 deletion yin_yang/plugins/_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def set_theme(self, theme: str):
self.call(self.create_message(theme))

def create_message(self, theme: str) -> QDBusMessage:
message = copy.deepcopy(self.base_message)
message = copy.copy(self.base_message)
message.setArguments([theme])
return message

Expand Down

0 comments on commit f855d77

Please sign in to comment.