mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 09:23:03 +00:00
chore: bad code fix
bad indentation of else and unused count value Log: find some bad code and fix
This commit is contained in:
parent
f90bd54c1f
commit
384fdc46ba
@ -328,7 +328,7 @@ void TrayManagerWindow::initConnection()
|
|||||||
connect(m_systemPluginWidget, &SystemPluginWindow::itemChanged, this, [ this ] {
|
connect(m_systemPluginWidget, &SystemPluginWindow::itemChanged, this, [ this ] {
|
||||||
if (m_position == Dock::Position::Top || m_position == Dock::Position::Bottom)
|
if (m_position == Dock::Position::Top || m_position == Dock::Position::Bottom)
|
||||||
m_systemPluginWidget->setFixedWidth(m_systemPluginWidget->suitableSize().width());
|
m_systemPluginWidget->setFixedWidth(m_systemPluginWidget->suitableSize().width());
|
||||||
else
|
else
|
||||||
m_systemPluginWidget->setFixedHeight(m_systemPluginWidget->suitableSize().height());
|
m_systemPluginWidget->setFixedHeight(m_systemPluginWidget->suitableSize().height());
|
||||||
|
|
||||||
Q_EMIT requestUpdate();
|
Q_EMIT requestUpdate();
|
||||||
@ -355,12 +355,6 @@ void TrayManagerWindow::initConnection()
|
|||||||
|
|
||||||
void TrayManagerWindow::resetChildWidgetSize()
|
void TrayManagerWindow::resetChildWidgetSize()
|
||||||
{
|
{
|
||||||
int count = 0;
|
|
||||||
for (int i = 0; i < m_model->rowCount(); i++) {
|
|
||||||
if (!m_trayView->isRowHidden(i))
|
|
||||||
count++;
|
|
||||||
}
|
|
||||||
|
|
||||||
switch (m_position) {
|
switch (m_position) {
|
||||||
case Dock::Position::Top:
|
case Dock::Position::Top:
|
||||||
case Dock::Position::Bottom: {
|
case Dock::Position::Bottom: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user