Added the abilitiy to enable the navigation bar in settings
This commit is contained in:
parent
e46406207d
commit
73b269887d
3 changed files with 27 additions and 1 deletions
|
@ -63,6 +63,7 @@ OptionsDialog::OptionsDialog(ProfileDatabase *profileDB, QWidget *parent) :
|
|||
setupDefaultProfile();
|
||||
setupPictureSettings();
|
||||
setupCustomGTAFolder();
|
||||
setupSnapmaticPictureViewer();
|
||||
|
||||
this->setWindowTitle(windowTitle().arg(GTA5SYNC_APPSTR));
|
||||
}
|
||||
|
@ -198,6 +199,7 @@ void OptionsDialog::applySettings()
|
|||
#else
|
||||
settings->setValue("Language", ui->cbLanguage->itemData(ui->cbLanguage->currentIndex()));
|
||||
#endif
|
||||
settings->setValue("NavigationBar", ui->cbSnapmaticNavigationBar->isChecked());
|
||||
settings->endGroup();
|
||||
|
||||
settings->beginGroup("Profile");
|
||||
|
@ -403,6 +405,13 @@ void OptionsDialog::setupCustomGTAFolder()
|
|||
settings->endGroup();
|
||||
}
|
||||
|
||||
void OptionsDialog::setupSnapmaticPictureViewer()
|
||||
{
|
||||
settings->beginGroup("Interface");
|
||||
ui->cbSnapmaticNavigationBar->setChecked(settings->value("NavigationBar", false).toBool());
|
||||
settings->endGroup();
|
||||
}
|
||||
|
||||
void OptionsDialog::on_cmdExploreFolder_clicked()
|
||||
{
|
||||
QString GTAV_Folder = QFileDialog::getExistingDirectory(this, UserInterface::tr("Select GTA V Folder..."), StandardPaths::documentsLocation(), QFileDialog::ShowDirsOnly);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue