Another code reduction. Settings are now stored in "OpenTX/Companion",
instead of "companion/companion"
This commit is contained in:
@@ -9,12 +9,8 @@
|
||||
splashLibrary::splashLibrary(QWidget *parent, QString * fileName) : QDialog(parent), ui(new Ui::splashLibrary) {
|
||||
splashFileName = fileName;
|
||||
ui->setupUi(this);
|
||||
QIcon NextIcon;
|
||||
populate_icon(&NextIcon,"arrow-right.png");
|
||||
QIcon PrevIcon;
|
||||
populate_icon(&PrevIcon,"arrow-left.png");
|
||||
ui->nextPage->setIcon(NextIcon);
|
||||
ui->prevPage->setIcon(PrevIcon);
|
||||
ui->nextPage->setIcon(CompanionIcon("arrow-right.png"));
|
||||
ui->prevPage->setIcon(CompanionIcon("arrow-left.png"));
|
||||
page = 0;
|
||||
getFileList();
|
||||
if (imageList.size() > 20) {
|
||||
@@ -65,7 +61,7 @@ void splashLibrary::setupPage(int page) {
|
||||
}
|
||||
|
||||
void splashLibrary::getFileList() {
|
||||
QSettings settings("companion", "companion");
|
||||
QSettings settings;
|
||||
imageList.clear();
|
||||
if (settings.value("embedded_splashes", 0).toInt() == 0) {
|
||||
QDir myRes(":/images/library");
|
||||
|
||||
Reference in New Issue
Block a user