--- nono/wx/wxlogsetting.cpp 2026/04/29 17:05:44 1.1.1.4 +++ nono/wx/wxlogsetting.cpp 2026/04/29 17:05:58 1.1.1.6 @@ -10,7 +10,6 @@ #include "wxlogsetting.h" #include "wxbutton.h" -#include "wxcolor.h" #include "wxtextscreen.h" #include "mainapp.h" #include @@ -33,9 +32,7 @@ WXLogSettingPanel::WXLogSettingPanel(wxW // エイリアスを持つオブジェクトだけ抜き出す for (const auto obj : gMainApp.GetObjects()) { - if (obj->GetAliases().empty() == false && - obj->GetId() != OBJ_LOGMONITOR) - { + if (obj->GetAliases().empty() == false) { objs.emplace_back(obj); } } @@ -70,8 +67,7 @@ WXLogSettingPanel::WXLogSettingPanel(wxW buttons.push_back(btn); // イベントを接続 - btn->Connect(NONO_EVT_BUTTON, - wxCommandEventHandler(WXLogSettingPanel::OnButton), NULL, this); + btn->Bind(NONO_EVT_BUTTON, &WXLogSettingPanel::OnButton, this); } // Sizer 使わず自前でレイアウトする。