brush settings reset button, hook crash handler on every thread, update changelog
This commit is contained in:
@@ -1175,6 +1175,7 @@ void Canvas::import_equirectangular(std::string file_path)
|
||||
|
||||
void Canvas::import_equirectangular_thread(std::string file_path)
|
||||
{
|
||||
BT_SetTerminate();
|
||||
App::I.async_start();
|
||||
|
||||
gl_state gl;
|
||||
@@ -1243,6 +1244,7 @@ void Canvas::export_equirectangular(std::string file_path, std::function<void()>
|
||||
if (App::I.check_license())
|
||||
{
|
||||
std::thread t([=] {
|
||||
BT_SetTerminate();
|
||||
export_equirectangular_thread(file_path);
|
||||
if (on_complete)
|
||||
on_complete();
|
||||
@@ -1547,6 +1549,7 @@ void Canvas::export_layers(std::string file_name, std::function<void()> on_compl
|
||||
if (App::I.check_license())
|
||||
{
|
||||
std::thread t([=] {
|
||||
BT_SetTerminate();
|
||||
export_layers_thread(file_name);
|
||||
if (on_complete)
|
||||
on_complete();
|
||||
@@ -1802,6 +1805,7 @@ void Canvas::project_save(std::function<void(bool)> on_complete)
|
||||
if (App::I.check_license())
|
||||
{
|
||||
std::thread t([=] {
|
||||
BT_SetTerminate();
|
||||
bool ret = project_save_thread(App::I.doc_path);
|
||||
if (on_complete)
|
||||
on_complete(ret);
|
||||
@@ -1816,6 +1820,7 @@ void Canvas::project_save(std::string file_path, std::function<void(bool)> on_co
|
||||
if (App::I.check_license())
|
||||
{
|
||||
std::thread t([=] {
|
||||
BT_SetTerminate();
|
||||
bool ret = project_save_thread(file_path);
|
||||
if (on_complete)
|
||||
on_complete(ret);
|
||||
@@ -2012,6 +2017,7 @@ bool Canvas::project_save_thread(std::string file_path)
|
||||
void Canvas::project_open(std::string file_path, std::function<void(bool)> on_complete)
|
||||
{
|
||||
std::thread t([=] {
|
||||
BT_SetTerminate();
|
||||
bool result = project_open_thread(file_path);
|
||||
if (on_complete)
|
||||
on_complete(result);
|
||||
|
||||
Reference in New Issue
Block a user