File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -2247,9 +2247,17 @@ void MainWindow::OnCaptureLoaded()
22472247 updateToolsMenuOptions ();
22482248
22492249 ui->action_Start_Replay_Loop ->setEnabled (true );
2250- ui-> action_Open_RGP_Profile -> setEnabled (
2251- m_Ctx. Replay (). GetCaptureAccess ()-> FindSectionByType (SectionType::AMDRGPProfile) >= 0 );
2250+
2251+ ui-> action_Open_RGP_Profile -> setEnabled ( false );
22522252 ui->action_Create_RGP_Profile ->setEnabled (m_Ctx.APIProps ().rgpCapture && m_Ctx.IsCaptureLocal ());
2253+ m_Ctx.Replay ().AsyncInvoke ([this ](IReplayController *) {
2254+ bool hasAMDGRPPorfile =
2255+ (m_Ctx.Replay ().GetCaptureAccess ()->FindSectionByType (SectionType::AMDRGPProfile) >= 0 );
2256+
2257+ GUIInvoke::call (this , [this , hasAMDGRPPorfile]() {
2258+ ui->action_Open_RGP_Profile ->setEnabled (hasAMDGRPPorfile);
2259+ });
2260+ });
22532261
22542262 setCaptureHasErrors (!m_Ctx.DebugMessages ().empty ());
22552263
You can’t perform that action at this time.
0 commit comments