mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-05 03:49:37 +00:00
Make the drop claim text in the output window look better
This commit is contained in:
@@ -1136,7 +1136,11 @@ class Twitch:
|
||||
f"{campaign.game.name}\n"
|
||||
f"{drop.rewards_text()} ({campaign.claimed_drops}/{campaign.total_drops})"
|
||||
)
|
||||
self.gui.print(_("status", "claimed_drop").format(drop=claim_text))
|
||||
# two different claim texts, becase a new line after the game name
|
||||
# looks ugly in the output window - replace it with a space
|
||||
self.gui.print(
|
||||
_("status", "claimed_drop").format(drop=claim_text.replace('\n', ' '))
|
||||
)
|
||||
self.gui.tray.notify(claim_text, _("gui", "tray", "notification_title"))
|
||||
else:
|
||||
logger.error(f"Drop claim failed! Drop ID: {drop_id}")
|
||||
|
||||
Reference in New Issue
Block a user