@@ -47,12 +47,13 @@ void DBusScreenManager::SetupComponents() {
47
47
}
48
48
49
49
void 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
+ );
56
57
auto mc = connection->new_method_call (" org.freedesktop.DBus" , " /org/freedesktop/DBus" , " org.freedesktop.DBus.Monitoring" ,
57
58
" BecomeMonitor" );
58
59
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) {
96
97
}
97
98
}
98
99
99
- ftxui::Component DBusScreenManager::left_menu () {
100
+ auto DBusScreenManager::left_menu () -> ftxui::Component {
100
101
auto option = ftxui::MenuOption::Vertical ();
101
102
102
103
option.on_enter = [this ] {
@@ -109,8 +110,8 @@ ftxui::Component DBusScreenManager::left_menu() {
109
110
return ftxui::Menu (¬iced_interfaces, &left_menu_selected, option);
110
111
}
111
112
112
- ftxui::Component DBusScreenManager::right_menu () {
113
+ auto DBusScreenManager::right_menu () -> ftxui::Component {
113
114
auto option = ftxui::MenuOption::Vertical ();
114
- option.on_enter = screen.ExitLoopClosure ();
115
+ // option.on_enter = screen.ExitLoopClosure();
115
116
return ftxui::Menu (&entries, &right_menu_selected, option);
116
117
}
0 commit comments