mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2025-01-17 15:42:10 +00:00
GUI: don't display the preview warning if NO_WARNING is set to 1
This commit is contained in:
parent
41c5044590
commit
38a3f32149
@ -3,6 +3,7 @@
|
||||
#include <QApplication>
|
||||
#include <QProcess>
|
||||
|
||||
#include "common/fs_sys_helpers.h"
|
||||
#include "mkvtoolnix-gui/app.h"
|
||||
#include "mkvtoolnix-gui/job_widget/job.h"
|
||||
#include "mkvtoolnix-gui/mkvtoolnix_gui.h"
|
||||
@ -18,6 +19,9 @@ registerMetaTypes() {
|
||||
|
||||
static void
|
||||
showPreviewWarning(QWidget *parent) {
|
||||
if (get_environment_variable("NO_WARNING") == "1")
|
||||
return;
|
||||
|
||||
auto dlg = std::unique_ptr<PreviewWarningDialog>(new PreviewWarningDialog{parent});
|
||||
dlg->exec();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user