mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-18 19:06:10 +00:00
Fix a bug of Overview perf (#1324)
This commit is contained in:
parent
8130e1c54f
commit
f23ff9d8c5
@ -344,7 +344,7 @@ void MainWindow::setOverviewData()
|
||||
|
||||
bool MainWindow::isOverviewActive()
|
||||
{
|
||||
if (!overviewDock || overviewDock->userClosed) {
|
||||
if (!overviewDock || overviewDock->userClosed || !overviewDock->isVisible) {
|
||||
return false;
|
||||
}
|
||||
if (core->isGraphEmpty()) {
|
||||
|
@ -15,6 +15,7 @@ OverviewWidget::OverviewWidget(MainWindow *main, QAction *action) :
|
||||
});
|
||||
|
||||
connect(this, &QDockWidget::visibilityChanged, this, [ = ](bool visibility) {
|
||||
isVisible = visibility;
|
||||
if (visibility) {
|
||||
updateContents();
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ public:
|
||||
* @brief if user closed this widget explicitly
|
||||
*/
|
||||
bool userClosed = false;
|
||||
bool isVisible = false;
|
||||
private:
|
||||
RefreshDeferrer *refreshDeferrer;
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user