Skip to content

Conversation

DeepDiver1975
Copy link
Member

No description provided.

Copy link

update-docs bot commented Sep 12, 2025

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@DeepDiver1975 DeepDiver1975 force-pushed the chore/drop-activity-widget-2 branch 3 times, most recently from 6396634 to 5a09f21 Compare September 12, 2025 16:00
@erikjv erikjv requested a review from modSpike September 15, 2025 12:37
@DeepDiver1975 DeepDiver1975 force-pushed the chore/drop-activity-widget-2 branch from 9268de0 to 4770bb9 Compare September 15, 2025 14:33
_localActivityWidget = new LocalActivityWidget(this);
_tab->addTab(_localActivityWidget, Resources::getCoreIcon(QStringLiteral("states/sync")), tr("Local Activity"));
auto _localActivityWidget = new LocalActivityWidget(this);
auto localActivityTabId = _tab->addTab(_localActivityWidget, Resources::getCoreIcon(QStringLiteral("states/sync")), tr("Local Activity"));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At the moment, no we don't need it but we have a member for the sync tab id so why not for the activity tab - this is why I made it a member. If neither is used get rid of both, otherwise I see no reason to have one index "saved" but not the other.

I am also not a fan of "auto" when the thing you are calling doesn't clearly indicate what type is returned.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my perspective the member can be added once needed - why carry around thing we don't need?

To me in this case both auto usages are quite clear - but I happily change if requested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants