[UI][FIX] Fix rounded corner widget

- Fix re-initialize bug causing multiple borders
This commit is contained in:
Linloir 2022-12-16 17:52:57 +08:00
parent c873268885
commit b60a35b92d
No known key found for this signature in database
GPG Key ID: 58EEB209A0F2C366

View File

@ -22,6 +22,10 @@ void RoundedCornerWidget::showEvent(QShowEvent* event) {
// Call parent show event // Call parent show event
QWidget::showEvent(event); QWidget::showEvent(event);
if (_initialized) {
return;
}
// Initialize widget UI // Initialize widget UI
initializeWidgetUI(); initializeWidgetUI();