Skip to content

Commit

Permalink
Autostart require 15 sec...
Browse files Browse the repository at this point in the history
  • Loading branch information
zRitsu committed Mar 28, 2023
1 parent d9a991d commit dc36af7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def __init__(self, client: RpcClient, autostart: int = 0):
menu = ['', ['Abrir Janela', 'Fechar App']]
self.tray = SystemTray(menu, single_click_events=True, window=self.window, tooltip=self.appname)

if autostart:
if autostart > 15:

if not self.config["urls"]:
self.tray.hide_icon()
Expand Down
2 changes: 1 addition & 1 deletion rpc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ def start_ws(self):
if __name__ == "__main__":

parser = argparse.ArgumentParser()
parser.add_argument('-autostart', type=int, help='Iniciar presence automaticamente', default=30)
parser.add_argument('-autostart', type=int, help='Iniciar presence automaticamente (tempo mínimo: 15)', default=0)
args = parser.parse_args()

RpcClient(autostart=args.autostart)

0 comments on commit dc36af7

Please sign in to comment.