mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-30 01:04:36 +00:00
No saving if there's no file selector.
This commit is contained in:
parent
2195e032a6
commit
1c8aece53c
@ -1721,11 +1721,13 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
|
||||
m_selectedAddresses.clear();
|
||||
m_selectedAddresses.emplace( v.first );
|
||||
}
|
||||
#ifndef TRACY_NO_FILESELECTOR
|
||||
else if( ImGui::IsMouseClicked( 1 ) )
|
||||
{
|
||||
ImGui::OpenPopup( "jumpPopup" );
|
||||
m_jumpPopupAddr = v.first;
|
||||
}
|
||||
#endif
|
||||
selJumpStart = v.second.min;
|
||||
selJumpEnd = v.second.max;
|
||||
selJumpTarget = v.first;
|
||||
@ -1756,6 +1758,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef TRACY_NO_FILESELECTOR
|
||||
if( m_font ) ImGui::PopFont();
|
||||
if( ImGui::BeginPopup( "jumpPopup" ) )
|
||||
{
|
||||
@ -1791,6 +1794,7 @@ uint64_t SourceView::RenderSymbolAsmView( uint32_t iptotal, unordered_flat_map<u
|
||||
ImGui::EndPopup();
|
||||
}
|
||||
if( m_font ) ImGui::PushFont( m_font );
|
||||
#endif
|
||||
}
|
||||
|
||||
auto win = ImGui::GetCurrentWindow();
|
||||
|
@ -168,7 +168,9 @@ private:
|
||||
void CheckRead( int line, RegsX86 reg, int limit );
|
||||
void CheckWrite( int line, RegsX86 reg, int limit );
|
||||
|
||||
#ifndef TRACY_NO_FILESELECTOR
|
||||
void Save( const Worker& worker, size_t start = 0, size_t stop = std::numeric_limits<size_t>::max() );
|
||||
#endif
|
||||
|
||||
struct TokenizerState
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user