MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / enableDock

Function enableDock

lib/variables/variable-tab.cpp:36–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36static void enableDock(bool enable)
37{
38 if (OBSIsShuttingDown()) {
39 return;
40 }
41
42 obs_frontend_remove_dock("advss-variable-dock");
43
44 addDock = enable;
45 if (!addDock) {
46 return;
47 }
48
49 dockWidget = new VariableTable(dockSettings);
50 dockWidget->HideDockOptions();
51 if (obs_frontend_add_dock_by_id(
52 "advss-variable-dock",
53 obs_module_text("AdvSceneSwitcher.variableTab.title"),
54 dockWidget)) {
55 return;
56 }
57
58 blog(LOG_INFO, "failed to register variable dock!");
59 dockWidget->deleteLater();
60 dockWidget = nullptr;
61}
62
63static void load(obs_data_t *data)
64{

Callers 2

loadFunction · 0.85
VariableTableMethod · 0.85

Calls 5

obs_frontend_remove_dockFunction · 0.85
obs_module_textFunction · 0.85
HideDockOptionsMethod · 0.80
OBSIsShuttingDownFunction · 0.50

Tested by

no test coverage detected