From 5fb58d99984db26998ad1d191611f64f5f858a60 Mon Sep 17 00:00:00 2001 From: Adam Saudagar Date: Tue, 7 Mar 2023 00:11:19 +0530 Subject: [PATCH] improved code a bit --- fishy/__main__.py | 3 ++- fishy/gui/splash.py | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fishy/__main__.py b/fishy/__main__.py index 33a3e5d..91e7f24 100644 --- a/fishy/__main__.py +++ b/fishy/__main__.py @@ -57,6 +57,7 @@ def main(): if not check_eula(): return + splash = Splash() bot = EngineEventHandler(lambda: gui) gui = GUI(lambda: bot, lambda: on_gui_load(gui, splash, logger)) logger = GuiLogger() @@ -70,7 +71,7 @@ def main(): logging.info(f"Fishybot v{fishy.__version__}") - splash = Splash().start() + splash.start() config.start_backup_scheduler() initialize() diff --git a/fishy/gui/splash.py b/fishy/gui/splash.py index e7296f0..806436e 100644 --- a/fishy/gui/splash.py +++ b/fishy/gui/splash.py @@ -20,7 +20,6 @@ class Splash: def start(self): self.process.start() - return self def show(self, win_loc, q): logging.debug("started splash process")