From a33c93aa8340561c7c5ce096904fc3b3a44b94fa Mon Sep 17 00:00:00 2001 From: DevilXD Date: Sat, 3 Dec 2022 13:09:50 +0100 Subject: [PATCH] Make the drop claim text in the output window look better --- twitch.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/twitch.py b/twitch.py index 5d2b27e..0d27c58 100644 --- a/twitch.py +++ b/twitch.py @@ -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}")