mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-14 23:34:08 +00:00
UI: Add Portable Mode indicator to title bar and log
Closes jp9000/obs-studio#654
This commit is contained in:
parent
9cb8ae74e4
commit
b75292dbf4
|
@ -858,6 +858,9 @@ bool OBSApp::OBSInit()
|
|||
if (!StartupOBS(locale.c_str(), GetProfilerNameStore()))
|
||||
return false;
|
||||
|
||||
blog(LOG_INFO, "Portable mode: %s",
|
||||
portable_mode ? "true" : "false");
|
||||
|
||||
mainWindow = new OBSBasic();
|
||||
|
||||
mainWindow->setAttribute(Qt::WA_DeleteOnClose, true);
|
||||
|
@ -909,6 +912,11 @@ string OBSApp::GetVersionString() const
|
|||
return ver.str();
|
||||
}
|
||||
|
||||
bool OBSApp::IsPortableMode()
|
||||
{
|
||||
return portable_mode;
|
||||
}
|
||||
|
||||
#ifdef __APPLE__
|
||||
#define INPUT_AUDIO_SOURCE "coreaudio_input_capture"
|
||||
#define OUTPUT_AUDIO_SOURCE "coreaudio_output_capture"
|
||||
|
|
|
@ -117,6 +117,7 @@ public:
|
|||
const char *GetCurrentLog() const;
|
||||
|
||||
std::string GetVersionString() const;
|
||||
bool IsPortableMode();
|
||||
|
||||
const char *InputAudioSource() const;
|
||||
const char *OutputAudioSource() const;
|
||||
|
|
|
@ -4459,6 +4459,9 @@ void OBSBasic::UpdateTitleBar()
|
|||
name << "Studio ";
|
||||
|
||||
name << App()->GetVersionString();
|
||||
if (App()->IsPortableMode())
|
||||
name << " - Portable Mode";
|
||||
|
||||
name << " - " << Str("TitleBar.Profile") << ": " << profile;
|
||||
name << " - " << Str("TitleBar.Scenes") << ": " << sceneCollection;
|
||||
|
||||
|
|
Loading…
Reference in a new issue