void ConfigHelper::setGeneralSettings(int ts, bool hide, bool oneInstance)
{
    if (toolbarStyle != ts) {
        emit toolbarStyleChanged(static_cast<Qt::ToolButtonStyle>(ts));
    }
    toolbarStyle = ts;
    hideWindowOnStartup = hide;
    onlyOneInstace = oneInstance;
}
void ConfigHelper::setGeneralSettings(int ts, bool hide, bool oneInstance, bool nativeMB, QString freeSite)
{
    if (toolbarStyle != ts) {
        emit toolbarStyleChanged(static_cast<Qt::ToolButtonStyle>(ts));
    }
    toolbarStyle = ts;
    hideWindowOnStartup = hide;
    onlyOneInstace = oneInstance;
    nativeMenuBar = nativeMB;
    this->setShadowSocksSite(freeSite);
}