Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.
C++
[android] Reinstate recorder export button.
Carsten Hartenfels2bc69f14f637
diff --git a/plugins/dockers/recorder/recorderdocker_dock.cpp b/plugins/dockers/recorder/recorderdocker_dock.cppindex b70a05bdf9..87eb1fa50b 100644--- a/plugins/dockers/recorder/recorderdocker_dock.cpp+++ b/plugins/dockers/recorder/recorderdocker_dock.cpp@@ -426,16 +426,9 @@ RecorderDockerDock::RecorderDockerDock()connect(d->recordToggleAction, SIGNAL(toggled(bool)), d->ui->buttonRecordToggle, SLOT(setChecked(bool)));connect(d->exportAction, SIGNAL(triggered()), d->ui->buttonExport, SIGNAL(clicked()));-- if constexpr (PLATFORM_SUPPORTS_FFMPEG) {- connect(d->ui->buttonRecordToggle, SIGNAL(toggled(bool)), d->ui->buttonExport, SLOT(setDisabled(bool)));- if (d->recordAutomatically) {- d->ui->buttonExport->setDisabled(true);- }- } else {- d->ui->buttonExport->setEnabled(false);- d->ui->buttonExport->setVisible(false);- }+ connect(d->ui->buttonRecordToggle, SIGNAL(toggled(bool)), d->ui->buttonExport, SLOT(setDisabled(bool)));+ if (d->recordAutomatically)+ d->ui->buttonExport->setDisabled(true);// Need to register toolbar actions before attaching canvas else it wont appear after restart.// Is there any better way to do this?@@ -604,7 +597,7 @@ bool RecorderDockerDock::onRecordButtonToggled(bool checked)void RecorderDockerDock::onExportButtonClicked(){- if (!PLATFORM_SUPPORTS_FFMPEG || !d->canvas)+ if (!d->canvas)return;KisDocument *document = d->canvas->imageView()->document();diff --git a/plugins/dockers/recorder/recorderdocker_dock.h b/plugins/dockers/recorder/recorderdocker_dock.hindex aa61ac4fb1..0cf07b1cf2 100644--- a/plugins/dockers/recorder/recorderdocker_dock.h+++ b/plugins/dockers/recorder/recorderdocker_dock.h@@ -69,11 +69,6 @@ private Q_SLOTS:private:Q_DISABLE_COPY(RecorderDockerDock)-#ifdef Q_OS_ANDROID- static constexpr bool PLATFORM_SUPPORTS_FFMPEG = false;-#else- static constexpr bool PLATFORM_SUPPORTS_FFMPEG = true;-#endifclass Private;RecorderExportSettings *const exportSettings;Private *const d;