def sushi_connected(time, server): tab = main_window.find_server(server) if not tab: tab = tabs.Server(name=server) main_window.add_server(tab) print_tab_notification(tab, "Connected.") tab.set_connected(True)
def sushi_connected(time, server): tab = main_window.find_server(server) if not tab: tab = tabs.Server(name = server) main_window.add_server(tab) print_tab_notification(tab, "Connected.") tab.set_connected(True)
def sushi_connect_attempt(time, server): tab = main_window.find_server(server) if not tab: tab = tabs.Server(name=server) main_window.add_server(tab) print_tab_notification(tab, "Connecting...") elif tab.connected: tab.set_connected(False) print_tab_notification(tab, "Reconnecting...") else: print_tab_notification(tab, "Connecting...")
def sushi_connect_attempt(time, server): tab = main_window.find_server(server) if not tab: tab = tabs.Server(name = server) main_window.add_server(tab) print_tab_notification(tab, "Connecting...") elif tab.connected: tab.set_connected(False) print_tab_notification(tab, "Reconnecting...") else: print_tab_notification(tab, "Connecting...")