slic3r: Fix missing includes in wxMediaCtrl2

src/slic3r/GUI/wxMediaCtrl2.cpp: In lambda function:
src/slic3r/GUI/wxMediaCtrl2.cpp:170:13: error: ‘wxMessageBox’ was not declared in this scope; did you mean ‘wxInfoMessageBox’?
  170 |             wxMessageBox(_L("Your system is missing H.264 codecs for GStreamer, which are required to play video.  (Try installing the gstreamer1.0-plugins-bad or gstreamer1.0-libav packages, then restart Bambu Studio?)"), _L("Error"), wxOK);
      |             ^~~~~~~~~~~~
      |             wxInfoMessageBox
src/slic3r/GUI/wxMediaCtrl2.cpp: In member function ‘void wxMediaCtrl2::Load(wxURI)’:
src/slic3r/GUI/wxMediaCtrl2.cpp:179:5: error: ‘wxLog’ has not been declared
  179 |     wxLog::EnableLogging(false);
      |     ^~~~~
This commit is contained in:
Bastien Nocera 2024-10-16 23:04:43 +02:00 committed by Lane.Wei
parent 781ce14e06
commit 73908d38d8
1 changed files with 2 additions and 0 deletions

View File

@ -1,6 +1,8 @@
#include "wxMediaCtrl2.h"
#include "I18N.hpp"
#include "libslic3r/Utils.hpp"
#include <wx/log.h>
#include <wx/msgdlg.h>
#ifdef __WIN32__
#include <versionhelpers.h>
#include <wx/msw/registry.h>