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. --- include/aoapplication.h | 3 +++ include/aooptionsdialog.h | 2 ++ 2 files changed, 5 insertions(+) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index 21c04b8..f1ba9d7 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -194,6 +194,9 @@ public: // Returns true if stop music on objection is enabled in the config.ini bool objection_stop_music(); + // Returns true if streaming is enabled in the config.ini + bool is_streaming_disabled(); + // Returns the value of default_music in config.ini int get_default_music(); diff --git a/include/aooptionsdialog.h b/include/aooptionsdialog.h index d78f8e9..daf1b35 100644 --- a/include/aooptionsdialog.h +++ b/include/aooptionsdialog.h @@ -145,6 +145,8 @@ private: QCheckBox *ui_loopsfx_cb; QLabel *ui_objectmusic_lbl; QCheckBox *ui_objectmusic_cb; + QLabel *ui_disablestreams_lbl; + QCheckBox *ui_disablestreams_cb; QDialogButtonBox *ui_settings_buttons; QWidget *ui_casing_tab; -- cgit