improve text input
This commit is contained in:
@@ -113,7 +113,7 @@ void App::dialog_newdoc()
|
||||
|
||||
dialog->btn_ok->on_click = [this, dialog](Node*)
|
||||
{
|
||||
std::string name = dialog->input->m_string;
|
||||
std::string name = dialog->input->m_text;
|
||||
std::string path = work_path + "/" + name + ".ppi";
|
||||
|
||||
if (name.empty())
|
||||
@@ -381,7 +381,7 @@ void App::dialog_save()
|
||||
|
||||
dialog->btn_ok->on_click = [this, dialog](Node*)
|
||||
{
|
||||
std::string name = dialog->input->m_string;
|
||||
std::string name = dialog->input->m_text;
|
||||
std::string path = work_path + "/" + name + ".ppi";
|
||||
|
||||
if (name.empty())
|
||||
|
||||
Reference in New Issue
Block a user