Răsfoiți Sursa

frontend-tools: Remove unused startAtLaunch variable

Norihiro Kamae 2 ani în urmă
părinte
comite
20b8deba2d

+ 0 - 10
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<mutex> lock(switcher->m);
-	switcher->startAtLaunch = value;
-}
-
 void SceneSwitcher::UpdateNonMatchingScene(const QString &name)
 {
 	OBSSourceAutoRelease scene =

+ 0 - 1
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();