mirror of
https://github.com/Linloir/SceneEditor.git
synced 2025-12-17 15:38:11 +08:00
[UI][FIX] Fix rounded corner widget
- Fix re-initialize bug causing multiple borders
This commit is contained in:
parent
c873268885
commit
b60a35b92d
@ -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();
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user