Skip to content

Commit

Permalink
解决托盘区域排列异常的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hepuyao committed Sep 27, 2021
1 parent b052b1f commit dc4384c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugin-tray/storagearrow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
#include <QPainter>
#include <QDesktopWidget>
#include <QApplication>
#include <QTimer>

#include "storagearrow.h"
#include "../panel/customstyle.h"
Expand All @@ -36,6 +37,7 @@ StorageArrow::StorageArrow(QWidget* parent):
setStyle(new CustomStyle());
// setVisible(false);

QTimer::singleShot(10,[this]{setArrowIcon();});
const QByteArray id(PANEL_SETTINGS);
gsetting = new QGSettings(id);
panelPosition = gsetting->get(PANEL_POSITION_KEY).toInt();
Expand Down

0 comments on commit dc4384c

Please sign in to comment.