@@ -47,12 +47,13 @@ void DBusScreenManager::SetupComponents() {
4747}
4848
4949void DBusScreenManager::SetupDBusConnection () {
50- auto connection = std::make_shared<sdbusplus::asio::connection>(ctx, tfc::dbus::sd_bus_open_system_mon ());
51- auto match = std::make_unique<sdbusplus::bus::match::match>(
52- *connection,
53- " " ,
54- std::bind (&DBusScreenManager::match_callback, this , std::placeholders::_1)
55- );
50+ connection =
51+ std::make_shared<sdbusplus::asio::connection>(ctx, tfc::dbus::sd_bus_open_system_mon ());
52+ match = std::make_unique<sdbusplus::bus::match::match>(
53+ *connection,
54+ " " ,
55+ [this ](sdbusplus::message_t & msg) { this ->match_callback (msg); }
56+ );
5657 auto mc = connection->new_method_call (" org.freedesktop.DBus" , " /org/freedesktop/DBus" , " org.freedesktop.DBus.Monitoring" ,
5758 " BecomeMonitor" );
5859 mc.append <std::vector<std::string>, uint32_t >({ " path=/com/skaginn3x/Signals" }, 0 );
@@ -96,7 +97,7 @@ void DBusScreenManager::match_callback(sdbusplus::message_t& msg) {
9697 }
9798}
9899
99- ftxui::Component DBusScreenManager::left_menu () {
100+ auto DBusScreenManager::left_menu () -> ftxui::Component {
100101 auto option = ftxui::MenuOption::Vertical ();
101102
102103 option.on_enter = [this ] {
@@ -109,8 +110,8 @@ ftxui::Component DBusScreenManager::left_menu() {
109110 return ftxui::Menu (¬iced_interfaces, &left_menu_selected, option);
110111}
111112
112- ftxui::Component DBusScreenManager::right_menu () {
113+ auto DBusScreenManager::right_menu () -> ftxui::Component {
113114 auto option = ftxui::MenuOption::Vertical ();
114- option.on_enter = screen.ExitLoopClosure ();
115+ // option.on_enter = screen.ExitLoopClosure();
115116 return ftxui::Menu (&entries, &right_menu_selected, option);
116117}
0 commit comments