History

Make clicking the tablet mic icon or audio bar toggle the mute state

David Rowe committed 9 years ago

Commit a0834791 parent acaf8c64 files · +33 −4Browse files

Showing the changes to interface/src/Application.cpp (1 of 4 files). Show all

Unified · Split

interface/src/Application.cpp+5−0
@@ -6854,3 +6854,8 @@ void Application::updateThreadPoolCount() const { · 6853 unmodified lines
6854 qCDebug(interfaceapp) << "Setting thread pool size to " << threadPoolSize;6854 qCDebug(interfaceapp) << "Setting thread pool size to " << threadPoolSize;
6855 QThreadPool::globalInstance()->setMaxThreadCount(threadPoolSize);6855 QThreadPool::globalInstance()->setMaxThreadCount(threadPoolSize);
6856}6856}
6857
6858void Application::toggleMuteAudio() {
6859 auto menu = Menu::getInstance();
6860 menu->setIsOptionChecked(MenuOption::MuteAudio, !menu->isOptionChecked(MenuOption::MuteAudio));
6861}