mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-06 01:50:38 +00:00
Remove unused config variable LastCaptureExe
* In the .NET UI this was used to pre-fill the executable selection dialog, but it's unnecessary and hasn't been missed.
This commit is contained in:
@@ -274,8 +274,6 @@ DECLARE_REFLECTION_STRUCT(BugReport);
|
||||
\
|
||||
CONFIG_SETTING_VAL(public, QString, rdcstr, LastCapturePath, "") \
|
||||
\
|
||||
CONFIG_SETTING_VAL(public, QString, rdcstr, LastCaptureExe, "") \
|
||||
\
|
||||
CONFIG_SETTING(public, QVariantList, rdcarray<rdcstr>, RecentCaptureSettings) \
|
||||
\
|
||||
CONFIG_SETTING_VAL(public, QString, rdcstr, TemporaryCaptureDirectory, "") \
|
||||
@@ -450,10 +448,6 @@ For more information about some of these settings that are user-facing see
|
||||
The path containing the last executable that was captured, which is useful as a default location
|
||||
for browsing.
|
||||
|
||||
.. data:: LastCaptureExe
|
||||
|
||||
The path to the last executable that was captured, inside :data:`LastCapturePath`.
|
||||
|
||||
.. data:: RecentCaptureSettings
|
||||
|
||||
A ``list`` of ``str`` with the recently opened capture settings files.
|
||||
|
||||
@@ -568,7 +568,6 @@ bool CaptureDialog::checkAllowClose()
|
||||
void CaptureDialog::on_exePathBrowse_clicked()
|
||||
{
|
||||
QString initDir;
|
||||
QString file;
|
||||
|
||||
QFileInfo f(ui->exePath->text());
|
||||
QDir dir = f.dir();
|
||||
@@ -579,8 +578,6 @@ void CaptureDialog::on_exePathBrowse_clicked()
|
||||
else if(!m_Ctx.Config().LastCapturePath.isEmpty())
|
||||
{
|
||||
initDir = m_Ctx.Config().LastCapturePath;
|
||||
if(!m_Ctx.Config().LastCaptureExe.isEmpty())
|
||||
file = m_Ctx.Config().LastCaptureExe;
|
||||
}
|
||||
|
||||
QString filename;
|
||||
@@ -927,7 +924,6 @@ void CaptureDialog::SetExecutableFilename(const rdcstr &filename)
|
||||
if(!m_Ctx.Replay().CurrentRemote())
|
||||
{
|
||||
m_Ctx.Config().LastCapturePath = QFileInfo(fn).absolutePath();
|
||||
m_Ctx.Config().LastCaptureExe = QFileInfo(fn).completeBaseName();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user