mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-15 15:25:53 +08:00
missing includes and typos
This commit is contained in:
parent
09b4a88f18
commit
80c92d1331
@ -3035,9 +3035,9 @@ bool ConfigWizard::priv::apply_config(AppConfig *app_config, PresetBundle *prese
|
|||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
// Desktop integration on Linux
|
// Desktop integration on Linux
|
||||||
BOOST_LOG_TRIVIAL(debug) << "ConfigWizard::priv::apply_config integrate_desktop" << page_welcome->integrate_desktop() << " perform_registration_linux " << page_downloader->downloader->get_perform_registration_linux();
|
BOOST_LOG_TRIVIAL(debug) << "ConfigWizard::priv::apply_config integrate_desktop" << page_welcome->integrate_desktop() << " perform_registration_linux " << page_downloader->m_downloader->get_perform_registration_linux();
|
||||||
if (page_welcome->integrate_desktop() || page_downloader->downloader->get_perform_registration_linux())
|
if (page_welcome->integrate_desktop() || page_downloader->m_downloader->get_perform_registration_linux())
|
||||||
DesktopIntegrationDialog::perform_desktop_integration(page_downloader->downloader->get_perform_registration_linux());
|
DesktopIntegrationDialog::perform_desktop_integration(page_downloader->m_downloader->get_perform_registration_linux());
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Decide whether to create snapshot based on run_reason and the reset profile checkbox
|
// Decide whether to create snapshot based on run_reason and the reset profile checkbox
|
||||||
|
@ -4,6 +4,8 @@
|
|||||||
#include <memory>
|
#include <memory>
|
||||||
|
|
||||||
#include <wx/dialog.h>
|
#include <wx/dialog.h>
|
||||||
|
#include <wx/sizer.h>
|
||||||
|
#include <wx/textctrl.h>
|
||||||
|
|
||||||
#include "GUI_Utils.hpp"
|
#include "GUI_Utils.hpp"
|
||||||
|
|
||||||
@ -17,7 +19,7 @@ namespace GUI {
|
|||||||
namespace DownloaderUtils {
|
namespace DownloaderUtils {
|
||||||
class Worker : public wxBoxSizer
|
class Worker : public wxBoxSizer
|
||||||
{
|
{
|
||||||
wxWindow* m_parent{ nullptr };
|
wxWindow* m_parent{ nullptr };
|
||||||
wxTextCtrl* m_input_path{ nullptr };
|
wxTextCtrl* m_input_path{ nullptr };
|
||||||
bool downloader_checked{ false };
|
bool downloader_checked{ false };
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
|
@ -10,12 +10,10 @@
|
|||||||
#include <boost/filesystem.hpp>
|
#include <boost/filesystem.hpp>
|
||||||
#include <boost/log/trivial.hpp>
|
#include <boost/log/trivial.hpp>
|
||||||
|
|
||||||
#include <wx/sizer.h>
|
|
||||||
#include <wx/panel.h>
|
#include <wx/panel.h>
|
||||||
#include <wx/button.h>
|
#include <wx/button.h>
|
||||||
#include <wx/choice.h>
|
#include <wx/choice.h>
|
||||||
#include <wx/spinctrl.h>
|
#include <wx/spinctrl.h>
|
||||||
#include <wx/textctrl.h>
|
|
||||||
#include <wx/listbox.h>
|
#include <wx/listbox.h>
|
||||||
#include <wx/checklst.h>
|
#include <wx/checklst.h>
|
||||||
#include <wx/radiobut.h>
|
#include <wx/radiobut.h>
|
||||||
|
@ -3084,7 +3084,7 @@ void GUI_App::show_downloader_registration_dialog()
|
|||||||
auto downloader_worker = new DownloaderUtils::Worker(nullptr);
|
auto downloader_worker = new DownloaderUtils::Worker(nullptr);
|
||||||
downloader_worker->perform_register(app_config->get("url_downloader_dest"));
|
downloader_worker->perform_register(app_config->get("url_downloader_dest"));
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
if (downloader->get_perform_registration_linux())
|
if (downloader_worker->get_perform_registration_linux())
|
||||||
DesktopIntegrationDialog::perform_desktop_integration(true);
|
DesktopIntegrationDialog::perform_desktop_integration(true);
|
||||||
#endif // __linux__
|
#endif // __linux__
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user