mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-09-07 09:05:57 -05:00
Add setPreconditions()
The idea is to avoid repeated calls to the same functions which lead to the same outcome, but just calling them once in the precondition checks. For now move repeated calls of GetCurrentWindowTitle() and ignoreWindow checks to this function.
This commit is contained in:
@@ -98,6 +98,7 @@ struct SwitcherData {
|
||||
std::deque<WindowSwitch> windowSwitches;
|
||||
std::vector<std::string> ignoreIdleWindows;
|
||||
std::string lastTitle;
|
||||
std::string currentTitle;
|
||||
|
||||
std::deque<ScreenRegionSwitch> screenRegionSwitches;
|
||||
|
||||
@@ -202,6 +203,7 @@ struct SwitcherData {
|
||||
void writeSceneInfoToFile();
|
||||
void writeToStatusFile(const QString &msg);
|
||||
|
||||
void setPreconditions();
|
||||
bool checkForMatch(OBSWeakSource &scene, OBSWeakSource &transition,
|
||||
int &linger, bool &setPreviousSceneAsMatch,
|
||||
bool ¯oMatch);
|
||||
|
||||
Reference in New Issue
Block a user