mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-09-24 23:31:36 +08:00
frontend: Split UI utility implementation into single files per class
This commit is contained in:
@@ -1,20 +1,15 @@
|
||||
#include "update-helpers.hpp"
|
||||
#include "shared-update.hpp"
|
||||
#include "moc_mac-update.cpp"
|
||||
#include "obs-app.hpp"
|
||||
#include "MacUpdateThread.hpp"
|
||||
|
||||
#include <string>
|
||||
#include <OBSApp.hpp>
|
||||
#include <utility/WhatsNewInfoThread.hpp>
|
||||
|
||||
#include <qt-wrappers.hpp>
|
||||
#include <QMessageBox>
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
#include "moc_MacUpdateThread.cpp"
|
||||
|
||||
static const char *MAC_BRANCHES_URL = "https://obsproject.com/update_studio/branches.json";
|
||||
static const char *MAC_DEFAULT_BRANCH = "stable";
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
bool GetBranch(std::string &selectedBranch)
|
||||
{
|
||||
const char *config_branch = config_get_string(App()->GetAppConfig(), "General", "UpdateBranch");
|
||||
@@ -39,8 +34,6 @@ bool GetBranch(std::string &selectedBranch)
|
||||
return found;
|
||||
}
|
||||
|
||||
/* ------------------------------------------------------------------------ */
|
||||
|
||||
void MacUpdateThread::infoMsg(const QString &title, const QString &text)
|
||||
{
|
||||
OBSMessageBox::information(App()->GetMainWindow(), title, text);
|
||||
|
||||
Reference in New Issue
Block a user