mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-21 14:06:45 +00:00
Prevent Shader Editor tooltip showing multiple "(F5)"
This commit is contained in:
@@ -320,12 +320,6 @@ void ShaderViewer::editShader(ResourceId id, ShaderStage stage, const QString &e
|
||||
|
||||
MarkModification();
|
||||
});
|
||||
|
||||
m_Ctx.GetMainWindow()->RegisterShortcut(QKeySequence(QKeySequence::Refresh).toString(), this,
|
||||
[this](QWidget *) { on_refresh_clicked(); });
|
||||
ui->refresh->setToolTip(ui->refresh->toolTip() +
|
||||
lit(" (%1)").arg(QKeySequence(QKeySequence::Refresh).toString()));
|
||||
|
||||
QWidget *w = (QWidget *)scintilla;
|
||||
w->setProperty("filename", kv.first);
|
||||
w->setProperty("origText", kv.second);
|
||||
@@ -338,6 +332,11 @@ void ShaderViewer::editShader(ResourceId id, ShaderStage stage, const QString &e
|
||||
}
|
||||
}
|
||||
|
||||
m_Ctx.GetMainWindow()->RegisterShortcut(QKeySequence(QKeySequence::Refresh).toString(), this,
|
||||
[this](QWidget *) { on_refresh_clicked(); });
|
||||
ui->refresh->setToolTip(ui->refresh->toolTip() +
|
||||
lit(" (%1)").arg(QKeySequence(QKeySequence::Refresh).toString()));
|
||||
|
||||
if(sel != NULL)
|
||||
ToolWindowManager::raiseToolWindow(sel);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user