Don't display Wizard on every AppImage startup

parent 2f329dd4
......@@ -69,7 +69,7 @@ bool MyWizardPage::isComplete() const
return m_isComplete;
}
Wizard::Wizard(bool autoClose, QWidget *parent) :
Wizard::Wizard(bool autoClose, bool appImageCheck, QWidget *parent) :
QWizard(parent),
m_systemCheckIsOk(false),
m_brokenModule(false)
......@@ -98,7 +98,7 @@ Wizard::Wizard(bool autoClose, QWidget *parent) :
setButtonText(QWizard::FinishButton, i18n("OK"));
slotCheckMlt();
if (!m_errors.isEmpty() || !m_warnings.isEmpty() || !m_infos.isEmpty()) {
if (!m_errors.isEmpty() || !m_warnings.isEmpty() || (!m_infos.isEmpty() && !appImageCheck)) {
QLabel *lab = new QLabel(this);
lab->setText(i18n("Startup error or warning, check our <a href='#'>online manual</a>."));
connect(lab, &QLabel::linkActivated, this, &Wizard::slotOpenManual);
......
......@@ -45,7 +45,7 @@ class Wizard : public QWizard
{
Q_OBJECT
public:
explicit Wizard(bool autoClose, QWidget *parent = nullptr);
explicit Wizard(bool autoClose, bool appImageCheck, QWidget *parent = nullptr);
void installExtraMimes(const QString &baseName, const QStringList &globs);
void runUpdateMimeDatabase();
void adjustSettings();
......
......@@ -1644,7 +1644,7 @@ bool MainWindow::readOptions()
// Check color theme
ThemeManager::instance()->initDarkTheme();
// this is our first run, show Wizard
QPointer<Wizard> w = new Wizard(true);
QPointer<Wizard> w = new Wizard(true, false);
if (w->exec() == QDialog::Accepted && w->isOk()) {
w->adjustSettings();
delete w;
......@@ -1654,7 +1654,7 @@ bool MainWindow::readOptions()
}
} else if (!KdenliveSettings::ffmpegpath().isEmpty() && !QFile::exists(KdenliveSettings::ffmpegpath())) {
// Invalid entry for FFmpeg, check system
QPointer<Wizard> w = new Wizard(true);
QPointer<Wizard> w = new Wizard(true, config->name().contains(QLatin1String("appimage")));
if (w->exec() == QDialog::Accepted && w->isOk()) {
w->adjustSettings();
}
......@@ -1666,7 +1666,7 @@ bool MainWindow::readOptions()
void MainWindow::slotRunWizard()
{
QPointer<Wizard> w = new Wizard(false, this);
QPointer<Wizard> w = new Wizard(false, false, this);
if (w->exec() == QDialog::Accepted && w->isOk()) {
w->adjustSettings();
}
......
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