Skip to content

Commit

Permalink
Fix settings update feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
sieren committed Dec 22, 2016
1 parent 5d61b01 commit 9229a5a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
2 changes: 2 additions & 0 deletions sources/qst/processcontroller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ ProcessController::ProcessController(std::shared_ptr<settings::AppSettings> appS
{
connect(mpAppSettings.get(), &settings::AppSettings::settingsUpdated,
this, &ProcessController::onSettingsUpdated);
spawnSyncthingProcess();
spawnINotifyProcess();
}


Expand Down
4 changes: 0 additions & 4 deletions sources/qst/startuptab.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,6 @@ void StartupTab::initGUI()
launcherLayout->addWidget(mpFilePathGroupBox);
launcherLayout->addWidget(mpiNotifyGroupBox);
setLayout(launcherLayout);

launchSyncthingBoxChanged(launchState);
launchINotifyBoxChanged(iNotifylaunchState);

}

//------------------------------------------------------------------------------------//
Expand Down
7 changes: 4 additions & 3 deletions sources/qst/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ Window::Window()
mpSettingsTabsWidget->addTab(mpProcessMonitor.get(), "Auto-Pause");
mainLayout->addWidget(mpSettingsTabsWidget);
setLayout(mainLayout);
testURL();

mpSyncConnector->setURL(
mpAppSettings->value(kUrlId).toString(),
mpAppSettings->value(kUserNameId).toString(),
mpAppSettings->value(kPasswordId).toString());
setIcon(0);
mpTrayIcon->show();
#ifdef Q_OS_MAC
Expand Down Expand Up @@ -206,7 +208,6 @@ void Window::setIcon(const int index, const bool isManualSet)

void Window::testURL()
{
saveSettings();
std::string validateUrl = mpSyncthingUrlLineEdit->text().toStdString();
std::size_t foundSSL = validateUrl.find("https");
if (foundSSL!=std::string::npos)
Expand Down

0 comments on commit 9229a5a

Please sign in to comment.