def __init__(self, server=None):
        self.server = server
        server_selection = ServerSelectionWindow(self.server)
        server_selection.connect('server-selected', self.on_server_selected)
        self.app = GDanmakuApp(self)
        self.thread_sub = None
        self.enabled = True
        self.options = load_config()
        self.live_danmakus = {}