UI: Add option to toggle source icons to View menu
This commit is contained in:
parent
8c549a3223
commit
9f1c442d35
7 changed files with 61 additions and 16 deletions
|
|
@ -1647,6 +1647,10 @@ void OBSBasic::OBSInit()
|
|||
SET_VISIBILITY("ShowStatusBar", toggleStatusBar);
|
||||
#undef SET_VISIBILITY
|
||||
|
||||
bool sourceIconsVisible = config_get_bool(
|
||||
GetGlobalConfig(), "BasicWindow", "ShowSourceIcons");
|
||||
ui->toggleSourceIcons->setChecked(sourceIconsVisible);
|
||||
|
||||
{
|
||||
ProfileScope("OBSBasic::Load");
|
||||
disableSaving--;
|
||||
|
|
@ -6801,6 +6805,14 @@ void OBSBasic::on_toggleStatusBar_toggled(bool visible)
|
|||
visible);
|
||||
}
|
||||
|
||||
void OBSBasic::on_toggleSourceIcons_toggled(bool visible)
|
||||
{
|
||||
ui->sources->SetIconsVisible(visible);
|
||||
|
||||
config_set_bool(App()->GlobalConfig(), "BasicWindow", "ShowSourceIcons",
|
||||
visible);
|
||||
}
|
||||
|
||||
void OBSBasic::on_actionLockPreview_triggered()
|
||||
{
|
||||
ui->preview->ToggleLocked();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue