def METHOD_NAME(self):
    if self.sync_server.is_paused():
        self.sync_server.unpause_server()
        self.pause_btn.setText("Pause server")
    else:
        self.sync_server.pause_server()
        self.pause_btn.setText("Unpause server")
    self.projects.refresh()