From e6bc355bc741af195628f55aa50c09222499e34d Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Sun, 6 Jun 2021 03:25:17 -0700 Subject: [PATCH 1/2] fix(ui): passing arguments from the CircleWidget constructor --- src/widget/circlewidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/circlewidget.cpp b/src/widget/circlewidget.cpp index 2bb1fc7e9..2eca8ddfd 100644 --- a/src/widget/circlewidget.cpp +++ b/src/widget/circlewidget.cpp @@ -41,7 +41,7 @@ QHash CircleWidget::circleList; CircleWidget::CircleWidget(const Core &_core, FriendListWidget* parent, int id) - : CategoryWidget(parent) + : CategoryWidget(Settings::getInstance().getCompactLayout(), parent) , id(id) , core{_core} { From f3f1f08afbe0619e9a4aec89917cadd30866c47c Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Sun, 6 Jun 2021 03:25:21 -0700 Subject: [PATCH 2/2] refactor(ui): using the isCompact function --- src/widget/circlewidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/widget/circlewidget.cpp b/src/widget/circlewidget.cpp index 2eca8ddfd..0f3c8c629 100644 --- a/src/widget/circlewidget.cpp +++ b/src/widget/circlewidget.cpp @@ -41,7 +41,7 @@ QHash CircleWidget::circleList; CircleWidget::CircleWidget(const Core &_core, FriendListWidget* parent, int id) - : CategoryWidget(Settings::getInstance().getCompactLayout(), parent) + : CategoryWidget(isCompact(), parent) , id(id) , core{_core} {