Add OpenRGB client support to GUI

This commit is contained in:
Adam Honse 2020-06-28 16:27:08 -05:00
parent 7d2877a8e9
commit 4c6429ae76
7 changed files with 521 additions and 88 deletions

View file

@ -70,7 +70,7 @@ int main(int argc, char* argv[])
QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QApplication a(argc, argv);
Ui::OpenRGBDialog2 dlg(busses, rgb_controllers, &profile_manager, &server);
Ui::OpenRGBDialog2 dlg(busses, rgb_controllers, &profile_manager);
if(ret_flags & RET_FLAG_I2C_TOOLS)
{
@ -80,13 +80,13 @@ int main(int argc, char* argv[])
//TODO:
// Determine whether or not to add server tab
// If application is open in client mode, do not show server tab
dlg.AddServerTab();
dlg.AddServerTab(&server);
//TODO:
// Determine whether or not to add client tab
// Client tab should probably always show
// Implement client tab
//dlg.AddClientTab();
dlg.AddClientTab();
if(ret_flags & RET_FLAG_START_MINIMIZED)
{