Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable visualizer when window is minimized #1832

Merged
merged 1 commit into from
Jan 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion MainModule/Client/UI/Default/Music/init.luau
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,14 @@ return function(data, env)
Position = UDim2.new(0, 10, 1, -410);
OnClose = function()
doOnClose()
end
end,
OnMinimized = function(opened)
if opened and not visualiser.Sound then
visualiser:LinkToSound(audioLib:GetSound())
elseif not opened and visualiser.Sound then
visualiser:UnlinkFromSound()
end
end,
})

-- The controls frame at the bottom of the window
Expand Down
Loading