mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-04 17:10:47 +00:00
Display full name if executable has no path markers
* Most likely this executable is an android app and we should display the full thing
This commit is contained in:
@@ -108,8 +108,12 @@ void CaptureDialog::PopulateMostRecent()
|
||||
if(!settings.executable.isEmpty())
|
||||
{
|
||||
ui->loadLastCapture->setEnabled(true);
|
||||
ui->loadLastCapture->setText(
|
||||
tr("Load Last Settings - %1").arg(QFileInfo(QString(settings.executable)).completeBaseName()));
|
||||
if(settings.executable.indexOf('/') < 0 && settings.executable.indexOf('\\') < 0)
|
||||
ui->loadLastCapture->setText(tr("Load Last Settings - %1").arg(QString(settings.executable)));
|
||||
else
|
||||
ui->loadLastCapture->setText(
|
||||
tr("Load Last Settings - %1")
|
||||
.arg(QFileInfo(QString(settings.executable)).completeBaseName()));
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user