From a78c88dd8aa04db7579b4e35265c10f8ab026e39 Mon Sep 17 00:00:00 2001 From: Norihiro Kamae Date: Sat, 14 Oct 2023 15:22:54 +0900 Subject: [PATCH] frontend-tools: Remove unused startAtLaunch variable (cherry picked from commit 20b8deba2dab5cc8bace5c02f72d648c3e47c3ce) --- .../frontend-tools/auto-scene-switcher.cpp | 10 ---------- .../frontend-tools/auto-scene-switcher.hpp | 1 - 2 files changed, 11 deletions(-) diff --git a/UI/frontend-plugins/frontend-tools/auto-scene-switcher.cpp b/UI/frontend-plugins/frontend-tools/auto-scene-switcher.cpp index ab5a74efc..8691d8529 100644 --- a/UI/frontend-plugins/frontend-tools/auto-scene-switcher.cpp +++ b/UI/frontend-plugins/frontend-tools/auto-scene-switcher.cpp @@ -49,7 +49,6 @@ struct SwitcherData { OBSWeakSource nonMatchingScene; int interval = DEFAULT_INTERVAL; bool switchIfNotMatching = false; - bool startAtLaunch = false; void Thread(); void Start(); @@ -259,15 +258,6 @@ void SceneSwitcher::on_remove_clicked() delete item; } -void SceneSwitcher::on_startAtLaunch_toggled(bool value) -{ - if (loading) - return; - - lock_guard lock(switcher->m); - switcher->startAtLaunch = value; -} - void SceneSwitcher::UpdateNonMatchingScene(const QString &name) { OBSSourceAutoRelease scene = diff --git a/UI/frontend-plugins/frontend-tools/auto-scene-switcher.hpp b/UI/frontend-plugins/frontend-tools/auto-scene-switcher.hpp index 74dc3af99..aa247d83c 100644 --- a/UI/frontend-plugins/frontend-tools/auto-scene-switcher.hpp +++ b/UI/frontend-plugins/frontend-tools/auto-scene-switcher.hpp @@ -35,7 +35,6 @@ public slots: void on_remove_clicked(); void on_noMatchDontSwitch_clicked(); void on_noMatchSwitch_clicked(); - void on_startAtLaunch_toggled(bool value); void on_noMatchSwitchScene_currentTextChanged(const QString &text); void on_checkInterval_valueChanged(int value); void on_toggleStartButton_clicked();