mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Add a tool menu item that will recompress a capture file
This commit is contained in:
@@ -183,6 +183,8 @@ MainWindow::MainWindow(ICaptureContext &ctx) : QMainWindow(NULL), ui(new Ui::Mai
|
||||
ui->action_Resolve_Symbols->setEnabled(false);
|
||||
ui->action_Resolve_Symbols->setText(tr("Resolve Symbols"));
|
||||
|
||||
ui->action_Recompress_Capture->setEnabled(false);
|
||||
|
||||
LambdaThread *th = new LambdaThread([this]() {
|
||||
m_Ctx.Config().AddAndroidHosts();
|
||||
for(RemoteHost *host : m_Ctx.Config().RemoteHosts)
|
||||
@@ -1295,6 +1297,8 @@ void MainWindow::OnCaptureLoaded()
|
||||
|
||||
statusProgress->setVisible(false);
|
||||
|
||||
ui->action_Recompress_Capture->setEnabled(true);
|
||||
|
||||
ui->action_Start_Replay_Loop->setEnabled(true);
|
||||
|
||||
setCaptureHasErrors(!m_Ctx.DebugMessages().empty());
|
||||
@@ -1335,6 +1339,8 @@ void MainWindow::OnCaptureClosed()
|
||||
ui->action_Resolve_Symbols->setEnabled(false);
|
||||
ui->action_Resolve_Symbols->setText(tr("Resolve Symbols"));
|
||||
|
||||
ui->action_Recompress_Capture->setEnabled(false);
|
||||
|
||||
SetTitle();
|
||||
|
||||
// if the remote sever disconnected during capture replay, resort back to a 'disconnected' state
|
||||
@@ -1628,6 +1634,11 @@ void MainWindow::on_action_Resolve_Symbols_triggered()
|
||||
m_Ctx.GetAPIInspector()->Refresh();
|
||||
}
|
||||
|
||||
void MainWindow::on_action_Recompress_Capture_triggered()
|
||||
{
|
||||
m_Ctx.RecompressCapture();
|
||||
}
|
||||
|
||||
void MainWindow::on_action_Start_Replay_Loop_triggered()
|
||||
{
|
||||
if(!m_Ctx.IsCaptureLoaded())
|
||||
|
||||
Reference in New Issue
Block a user