Skip to content

Commit

Permalink
Removed redundant conditional branch
Browse files Browse the repository at this point in the history
  • Loading branch information
BenTalagan committed Feb 18, 2025
1 parent 7016f99 commit 6c3a3e5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Various/talagan_Spectracular/widgets/spectrograph.lua
Original file line number Diff line number Diff line change
Expand Up @@ -393,9 +393,7 @@ function SpectrographWidget:handleRightMouse(ctx)
if self:containsPoint(mx, my) and (not self.mw:prehemptsMouse()) and not self.lr_mix_widget:containsPoint(mx,my) and ImGui.IsMouseReleased(ctx, ImGui.MouseButton_Right) and (dx == 0 and dy == 0) then
local torem = self:hoveredProfile(ctx)
if torem then

if torem then
table.remove(self.extracted_profiles, torem) end
table.remove(self.extracted_profiles, torem)
else
-- Reset view
self:resetHorizontalZoom()
Expand Down

0 comments on commit 6c3a3e5

Please sign in to comment.