Commit 2c26f9fd authored by Jasem Mutlaq's avatar Jasem Mutlaq

Add notification that KStars needs to be restarted after changing INDI drivers directory

parent d4acce3e
......@@ -84,6 +84,8 @@ void OpsINDI::toggleDriversInternal()
kcfg_indiDriversDir->setText("*Internal INDI Drivers*");
else
kcfg_indiDriversDir->setText(KSUtils::getDefaultPath("indiDriversDir"));
KSNotification::info(i18n("You need to restart KStars for this change to take effect."));
}
void OpsINDI::saveFITSDirectory()
......@@ -99,7 +101,10 @@ void OpsINDI::saveDriversDirectory()
QString dir = QFileDialog::getExistingDirectory(KStars::Instance(), i18n("INDI Drivers Directory"), kcfg_indiDriversDir->text());
if (!dir.isEmpty())
{
kcfg_indiDriversDir->setText(dir);
KSNotification::info(i18n("You need to restart KStars for this change to take effect."));
}
}
void OpsINDI::slotShowLogFiles()
......
......@@ -48,7 +48,7 @@
<item>
<layout class="QHBoxLayout" name="horizontalLayout_6">
<property name="spacing">
<number>-1</number>
<number>5</number>
</property>
<item>
<widget class="QCheckBox" name="kcfg_indiDriversAreInternal">
......@@ -72,6 +72,9 @@
<property name="text">
<string notr="true">/usr/share/indi</string>
</property>
<property name="readOnly">
<bool>true</bool>
</property>
</widget>
</item>
<item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment