Skip to content

Commit

Permalink
Merge pull request microsoft#1426 from amgleitman/perfmonitor-devsett…
Browse files Browse the repository at this point in the history
…ings-bridge

Grab RCTPerfMonitor's devSettings from the bridge
  • Loading branch information
amgleitman authored Sep 8, 2022
2 parents b0aff93 + d8dd3fc commit 15d2dbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion React/CoreModules/RCTPerfMonitor.mm
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ - (RCTDevMenuItem *)devMenuItem
{
if (!_devMenuItem) {
__weak __typeof__(self) weakSelf = self;
__weak RCTDevSettings *devSettings = [self->_moduleRegistry moduleForName:"DevSettings"];
__weak RCTDevSettings *devSettings = [[self bridge] devSettings]; // TODO(macOS GH#774)
if (devSettings.isPerfMonitorShown) {
[weakSelf show];
}
Expand Down

0 comments on commit 15d2dbd

Please sign in to comment.