1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-09-30 23:55:09 +00:00

Collapse the "offset" line in the info window for non-DEBUG

This commit is contained in:
Andy McFadden 2019-10-30 14:30:03 -07:00
parent 4b46b78e34
commit f61f1022e1
2 changed files with 12 additions and 1 deletions

View File

@ -740,7 +740,8 @@ limitations under the License.
<TextBlock Grid.Row="0" TextWrapping="Wrap"
Text="{Binding InfoLineDescrText, FallbackValue=Line #1234: N bytes of data}"/>
<TextBlock Grid.Row="1" TextWrapping="Wrap" Foreground="DarkGray"
Text="{Binding InfoOffsetText, FallbackValue=[offset: +123456]}"/>
Text="{Binding InfoOffsetText, FallbackValue=[offset: +123456]}"
Visibility="{Binding InfoShowDebug, Converter={StaticResource BoolToVis}}"/>
<StackPanel Grid.Row="2"
Visibility="{Binding InfoFormatShowDashes, Converter={StaticResource BoolToVis}}">

View File

@ -1768,6 +1768,16 @@ namespace SourceGen.WpfGui {
}
private string mInfoPanelDetail1;
public bool InfoShowDebug {
get {
#if DEBUG
return true;
#else
return false;
#endif
}
}
//public string InfoPanelMonoContents {
// get { return mInfoPanelMonoContents; }
// set { mInfoPanelMonoContents = value; OnPropertyChanged(); }