'Disable the Settings button while an OnionShare server is active.'

def set_server_active(self, active):

    self.settings_button.setEnabled((not active))
    if active:
        self.settings_button.setIcon(QtGui.QIcon(common.get_resource_path('images/settings_inactive.png')))
    else:
        self.settings_button.setIcon(QtGui.QIcon(common.get_resource_path('images/settings.png')))
    self.settingsAction.setEnabled((not active))
