1
0
Fork 0
forked from len0rd/rockbox

rbutil: Enable themes install depending on theme selection.

Don't store the "Install Themes" option. Automatically enable themes
installation if the themes selection has at least one entry selected
instead.

Change-Id: Ib46e8b53b0204555b79dea51545dd7c380f003ff
This commit is contained in:
Dominik Riebeling 2022-04-17 22:28:13 +02:00
parent 62108a9613
commit 37a60d5461
6 changed files with 17 additions and 41 deletions

View file

@ -36,17 +36,16 @@ class ThemesInstallWindow : public QDialog
public:
ThemesInstallWindow(QWidget* parent = 0);
~ThemesInstallWindow();
void downloadInfo(void);
void show(void);
void setLogger(ProgressLoggerGui* l) { logger = l; }
void setSelectOnly(bool state) { windowSelectOnly = state; }
void install(void);
public slots:
void accept(void);
void buttonOk(void);
signals:
void done(bool);
void selected(int);
void finished(bool);
private:
Ui::ThemeInstallFrm ui;
@ -62,9 +61,9 @@ class ThemesInstallWindow : public QDialog
QString fileName;
QString infocachedir;
bool windowSelectOnly;
private slots:
void downloadInfo(void);
void downloadDone(QNetworkReply::NetworkError error);
void updateImage(QNetworkReply::NetworkError error);
void abort(void);