Revert "fix: disappearing graph when showing and hiding settings panel in stream"
This reverts commit 76f765ce5f.
This commit is contained in:
1 parent
cdd5802a72
commit
7a37d11aea
1 file changed
-14
@@ -239,9 +239,6 @@
|
|||||||
}
|
}
|
||||||
else [toolBoxViewController.specialEntries removeObject:@"enterPip"];
|
else [toolBoxViewController.specialEntries removeObject:@"enterPip"];
|
||||||
|
|
||||||
// Always add the stats toggle option
|
|
||||||
if(![toolBoxViewController.specialEntries containsObject:@"toggleStatsOverlay"]) [toolBoxViewController.specialEntries addObject:@"toggleStatsOverlay"];
|
|
||||||
|
|
||||||
NSLog(@"toolBoxViewController.specialEntries %@", toolBoxViewController.specialEntries);
|
NSLog(@"toolBoxViewController.specialEntries %@", toolBoxViewController.specialEntries);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -345,15 +342,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (reloadSettings) {
|
if (reloadSettings) {
|
||||||
// Preserve current statistics overlay state when reloading settings
|
|
||||||
BOOL currentStatsOverlayEnabled = _settings.statsOverlayEnabled;
|
|
||||||
BOOL currentEnableGraphs = _settings.enableGraphs;
|
|
||||||
|
|
||||||
_settings = [[[DataManager alloc] init] getSettings]; //StreamFrameViewController retrieve the settings here.
|
_settings = [[[DataManager alloc] init] getSettings]; //StreamFrameViewController retrieve the settings here.
|
||||||
|
|
||||||
// Restore the current statistics overlay state to maintain consistency between overlay and graphs
|
|
||||||
_settings.statsOverlayEnabled = currentStatsOverlayEnabled;
|
|
||||||
_settings.enableGraphs = currentEnableGraphs;
|
|
||||||
}
|
}
|
||||||
overlayLevel = _settings.statsOverlayLevel.intValue;
|
overlayLevel = _settings.statsOverlayLevel.intValue;
|
||||||
if(viewIsBeingResized) viewIsBeingResized = false;
|
if(viewIsBeingResized) viewIsBeingResized = false;
|
||||||
@@ -388,9 +377,6 @@
|
|||||||
selector:@selector(updateStatsOverlay)
|
selector:@selector(updateStatsOverlay)
|
||||||
userInfo:nil
|
userInfo:nil
|
||||||
repeats:YES];
|
repeats:YES];
|
||||||
} else {
|
|
||||||
// When stats overlay is disabled, make sure to hide it immediately
|
|
||||||
[self updateStatsOverlay];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Re-create the ImGui view to properly apply the 'enableGraphs' setting
|
// Re-create the ImGui view to properly apply the 'enableGraphs' setting
|
||||||
|
|||||||
Reference in new issue
Block a user