diff options
Diffstat (limited to 'plugins/warp/ui/plugin.cpp')
| -rw-r--r-- | plugins/warp/ui/plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/warp/ui/plugin.cpp b/plugins/warp/ui/plugin.cpp index 69aaaf34..923a79b3 100644 --- a/plugins/warp/ui/plugin.cpp +++ b/plugins/warp/ui/plugin.cpp @@ -170,6 +170,9 @@ void WarpSidebarWidget::notifyViewChanged(ViewFrame *view) void WarpSidebarWidget::notifyViewLocationChanged(View *view, const ViewLocation &location) { + // Warp sidebar really should only update if it is visible, otherwise its a waste of cycles. + if (!this->isVisible()) + return; auto function = location.getFunction(); // TODO: Only update if the function exists? // NOTE: The function called will exit early if it is the same function. |
