frontend: Split UI utility implementation into single files per class
This commit is contained in:
parent
a0668682b7
commit
a1ba3247c6
15 changed files with 64 additions and 1033 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue