Compare commits

...

2 Commits

Author SHA1 Message Date
George Xu
88075c7497 lint / remove vestigial func 2025-01-13 14:06:45 -08:00
George Xu
2cc00b6e2c update source handlers 2025-01-13 11:59:29 -08:00

View File

@@ -251,6 +251,20 @@ void DesktopCapturer::DesktopListListener::OnSourceThumbnailChanged(int index) {
}
}
void DesktopCapturer::DesktopListListener::OnSourceAdded() {
if (have_selection_) {
have_selection_ = false;
std::move(update_callback_).Run();
} else {
have_thumbnail_ = false;
}
}
void DesktopCapturer::DesktopListListener::OnSourceRemoved() {
std::move(update_callback_).Run();
}
void DesktopCapturer::DesktopListListener::OnDelegatedSourceListDismissed() {
std::move(failure_callback_).Run();
}