mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-31 06:42:07 +00:00
NEW:confirm privacy agreement before binding printer
Change-Id: Iee6776bf533577dd9fd388c3ea2efad27692cf82
This commit is contained in:
@@ -66,7 +66,7 @@ void BindJob::process()
|
||||
long offset = tz.GetOffset();
|
||||
std::string timezone = get_timezone_utc_hm(offset);
|
||||
|
||||
int result = m_agent->bind(m_dev_ip, m_dev_id, m_sec_link, timezone,
|
||||
int result = m_agent->bind(m_dev_ip, m_dev_id, m_sec_link, timezone, m_improved,
|
||||
[this, &curr_percent, &msg, &result_code, &result_info](int stage, int code, std::string info) {
|
||||
|
||||
result_code = code;
|
||||
|
||||
@@ -19,6 +19,7 @@ class BindJob : public PlaterJob
|
||||
std::string m_sec_link;
|
||||
bool m_job_finished{ false };
|
||||
int m_print_job_completed_id = 0;
|
||||
bool m_improved{false};
|
||||
|
||||
protected:
|
||||
void on_exception(const std::exception_ptr &) override;
|
||||
@@ -38,6 +39,7 @@ public:
|
||||
void finalize() override;
|
||||
void set_event_handle(wxWindow* hanle);
|
||||
void post_fail_event(int code, std::string info);
|
||||
void set_improved(bool improved){m_improved = improved;};
|
||||
};
|
||||
|
||||
wxDECLARE_EVENT(EVT_BIND_UPDATE_MESSAGE, wxCommandEvent);
|
||||
|
||||
Reference in New Issue
Block a user