fix ppbr panel on iOS
This commit is contained in:
@@ -29,7 +29,8 @@ void NodeDialogExportPPBR::init_controls()
|
|||||||
{
|
{
|
||||||
m_title = find<NodeText>("title");
|
m_title = find<NodeText>("title");
|
||||||
m_dest_path_txt = find<NodeText>("dest-path");
|
m_dest_path_txt = find<NodeText>("dest-path");
|
||||||
m_dest_path_txt->SetVisibility(false);
|
if (m_dest_path_txt)
|
||||||
|
m_dest_path_txt->SetVisibility(false);
|
||||||
btn_ok = find<NodeButton>("btn-ok");
|
btn_ok = find<NodeButton>("btn-ok");
|
||||||
btn_cancel = find<NodeButton>("btn-cancel");
|
btn_cancel = find<NodeButton>("btn-cancel");
|
||||||
btn_cancel->on_click = [this](Node*) {
|
btn_cancel->on_click = [this](Node*) {
|
||||||
@@ -50,14 +51,17 @@ void NodeDialogExportPPBR::init_controls()
|
|||||||
App::I->message_box("WIP", "This feature is not yet implemented.");
|
App::I->message_box("WIP", "This feature is not yet implemented.");
|
||||||
};
|
};
|
||||||
btn_pick_dest = find<NodeButton>("pick-dest");
|
btn_pick_dest = find<NodeButton>("pick-dest");
|
||||||
btn_pick_dest->on_click = [this] (Node*) {
|
if (btn_pick_dest)
|
||||||
App::I->pick_dir([this](std::string path){
|
{
|
||||||
m_dest_path = path;
|
btn_pick_dest->on_click = [this] (Node*) {
|
||||||
m_dest_path_txt->set_text(("Dest: " + path).c_str());
|
App::I->pick_dir([this](std::string path){
|
||||||
m_dest_path_txt->SetVisibility(true);
|
m_dest_path = path;
|
||||||
export_check->set_value(true);
|
m_dest_path_txt->set_text(("Dest: " + path).c_str());
|
||||||
});
|
m_dest_path_txt->SetVisibility(true);
|
||||||
};
|
export_check->set_value(true);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
||||||
img_header = find<NodeImageTexture>("header-tex");
|
img_header = find<NodeImageTexture>("header-tex");
|
||||||
txt_header_descr = find<NodeText>("header-descr");
|
txt_header_descr = find<NodeText>("header-descr");
|
||||||
txt_author = find<NodeTextInput>("info-author");
|
txt_author = find<NodeTextInput>("info-author");
|
||||||
|
|||||||
Reference in New Issue
Block a user