From 4fa86c0174961be22e1996a472e908b36656083d Mon Sep 17 00:00:00 2001 From: Salanto <62221668+Salanto@users.noreply.github.com> Date: Sat, 30 Jul 2022 18:42:55 +0200 Subject: Add option to disable music streaming. (#829) * Add option to disable streamintg This one gets a unique message to prevent people forgetting they disable it and the wondering why streaming broke. * Fix code order * Fixes the music channel still playing audio when a new stream was blocked. * Update tooltip * Update tooltip to reflect the current way the feature works. --- src/text_file_functions.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/text_file_functions.cpp') diff --git a/src/text_file_functions.cpp b/src/text_file_functions.cpp index 74a8ab46..c7cf8d0c 100644 --- a/src/text_file_functions.cpp +++ b/src/text_file_functions.cpp @@ -1037,6 +1037,11 @@ bool AOApplication::objection_stop_music() return result.startsWith("true"); } +bool AOApplication::is_streaming_disabled() +{ + return configini->value("streaming_disabled", false).toBool(); +} + bool AOApplication::is_instant_objection_enabled() { QString result = configini->value("instant_objection", "true").value(); -- cgit