App::I static singleton to pointer
This commit is contained in:
@@ -92,7 +92,7 @@ void NodeColorPicker::init_controls()
|
||||
|
||||
m_btn_paste->on_click = [this](Node*)
|
||||
{
|
||||
std::string s = App::I.clipboard_get_text();
|
||||
std::string s = App::I->clipboard_get_text();
|
||||
std::regex r("#([\\dabcdefABCDEF]{6})");
|
||||
std::smatch m;
|
||||
if (std::regex_search(s, m, r))
|
||||
@@ -108,7 +108,7 @@ void NodeColorPicker::init_controls()
|
||||
|
||||
m_btn_copy->on_click = [this](Node*)
|
||||
{
|
||||
App::I.clipboard_set_text(m_txt_hex->m_text);
|
||||
App::I->clipboard_set_text(m_txt_hex->m_text);
|
||||
};
|
||||
|
||||
m_wheel->on_value_changed = [this](Node*, glm::vec3 hsv)
|
||||
|
||||
Reference in New Issue
Block a user