chore: bad code fix

bad indentation of else and unused count value

Log: find some bad code and fix
This commit is contained in:
chenhongtao 2023-04-18 10:18:55 +08:00 committed by Tsic
parent f90bd54c1f
commit 384fdc46ba

View File

@ -355,12 +355,6 @@ void TrayManagerWindow::initConnection()
void TrayManagerWindow::resetChildWidgetSize()
{
int count = 0;
for (int i = 0; i < m_model->rowCount(); i++) {
if (!m_trayView->isRowHidden(i))
count++;
}
switch (m_position) {
case Dock::Position::Top:
case Dock::Position::Bottom: {