mirror of
https://github.com/fishyboteso/fishyboteso.git
synced 2024-08-30 18:32:13 +00:00
pre update hotfix, added banner in manifest, hides on first launch fixed, test notification doesnt send fixed
This commit is contained in:
parent
066c25f08a
commit
30b8477d8d
@ -3,7 +3,7 @@ include README.md
|
||||
include requirements.txt
|
||||
include fishy/icon.ico
|
||||
include fishy/ProvisionsChalutier.zip
|
||||
include fishy/FishybotESO.lnk
|
||||
include fishy/fishybot_logo.png
|
||||
|
||||
recursive-include tests *
|
||||
recursive-exclude * __pycache__
|
||||
|
@ -122,7 +122,7 @@ def initialize_uid(config: Config):
|
||||
logging.error("Couldn't register uid, some features might not work")
|
||||
|
||||
|
||||
def initialize(gui, c: Config):
|
||||
def initialize(gui, c: Config, The_program_to_hide):
|
||||
create_shortcut_first(gui, c)
|
||||
initialize_uid(c)
|
||||
|
||||
@ -145,7 +145,6 @@ def initialize(gui, c: Config):
|
||||
pass
|
||||
|
||||
if not c.get("debug", False):
|
||||
The_program_to_hide = win32gui.GetForegroundWindow()
|
||||
win32gui.ShowWindow(The_program_to_hide, win32con.SW_HIDE)
|
||||
helper.install_thread_excepthook()
|
||||
sys.excepthook = helper.unhandled_exception_logging
|
||||
@ -170,6 +169,8 @@ def ask_terms():
|
||||
|
||||
|
||||
def main():
|
||||
The_program_to_hide = win32gui.GetForegroundWindow()
|
||||
|
||||
print("launching please wait...")
|
||||
|
||||
c = Config()
|
||||
@ -182,7 +183,7 @@ def main():
|
||||
gui.start()
|
||||
|
||||
logging.info(f"Fishybot v{fishy.__version__}")
|
||||
initialize(gui, c)
|
||||
initialize(gui, c, The_program_to_hide)
|
||||
|
||||
bot = Fishy(gui, events_buffer, c)
|
||||
bot.start_event_handler()
|
||||
|
@ -265,9 +265,9 @@ class GUI:
|
||||
|
||||
def check():
|
||||
if web.is_subbed(self.config.get("uid"), False)[0]:
|
||||
messagebox.showinfo("Note!", "Notification configured successfully!")
|
||||
web.send_notification(self.config.get("uid"), "Sending a test notification :D")
|
||||
self.notify.set(1)
|
||||
web.send_notification(self.config.get("uid"), "Sending a test notification :D")
|
||||
messagebox.showinfo("Note!", "Notification configured successfully!")
|
||||
quit_top()
|
||||
else:
|
||||
messagebox.showerror("Error", "Subscription wasn't successful")
|
||||
|
Loading…
Reference in New Issue
Block a user