From aea0e2ef80540d788d497ff9d15361a28d955976 Mon Sep 17 00:00:00 2001 From: Crystalwarrior Date: Tue, 9 Feb 2021 03:00:51 +0300 Subject: Fix backwards compatibility with the stopmusic Hide ~stop.mp3 and the stop category Add an option to make it so when you double-click a category, it expands/collapses it without sending the stop-music command Make right click stop music backwards compatible --- include/aoapplication.h | 4 ++++ include/aooptionsdialog.h | 3 +++ 2 files changed, 7 insertions(+) (limited to 'include') diff --git a/include/aoapplication.h b/include/aoapplication.h index 9667b269..e76ad683 100644 --- a/include/aoapplication.h +++ b/include/aoapplication.h @@ -226,6 +226,10 @@ public: // from the config.ini. bool is_continuous_enabled(); + // Returns the value of whether stopping music by double clicking category should be used + // from the config.ini. + bool is_category_stop_enabled(); + // Returns the value of the maximum amount of lines the IC chatlog // may contain, from config.ini. int get_max_log_size(); diff --git a/include/aooptionsdialog.h b/include/aooptionsdialog.h index 340a9f07..81dd191f 100644 --- a/include/aooptionsdialog.h +++ b/include/aooptionsdialog.h @@ -102,6 +102,9 @@ private: QLabel *ui_continuous_lbl; QCheckBox *ui_continuous_cb; + QLabel *ui_category_stop_lbl; + QCheckBox *ui_category_stop_cb; + QWidget *ui_callwords_tab; QWidget *ui_callwords_widget; QVBoxLayout *ui_callwords_layout; -- cgit