Move GetSettingsWindow() to ui-helpers

This commit is contained in:
WarmUpTill
2024-08-22 20:08:54 +02:00
committed by WarmUpTill
parent a523081d77
commit 863c84026e
6 changed files with 8 additions and 9 deletions

View File

@@ -1,6 +1,8 @@
#include "ui-helpers.hpp"
#include "advanced-scene-switcher.hpp"
#include "non-modal-dialog.hpp"
#include "obs-module-helper.hpp"
#include "plugin-state-helpers.hpp"
#include <obs-frontend-api.h>
#include <QGraphicsColorizeEffect>
@@ -102,7 +104,10 @@ int FindIdxInRagne(QComboBox *list, int start, int stop,
return foundIdx;
}
QWidget *GetSettingsWindow();
QWidget *GetSettingsWindow()
{
return SettingsWindowIsOpened() ? AdvSceneSwitcher::window : nullptr;
}
bool DisplayMessage(const QString &msg, bool question, bool modal)
{