mirror of
https://github.com/fadden/6502bench.git
synced 2025-08-08 13:25:26 +00:00
Collapse the "offset" line in the info window for non-DEBUG
This commit is contained in:
@@ -740,7 +740,8 @@ limitations under the License.
|
|||||||
<TextBlock Grid.Row="0" TextWrapping="Wrap"
|
<TextBlock Grid.Row="0" TextWrapping="Wrap"
|
||||||
Text="{Binding InfoLineDescrText, FallbackValue=Line #1234: N bytes of data}"/>
|
Text="{Binding InfoLineDescrText, FallbackValue=Line #1234: N bytes of data}"/>
|
||||||
<TextBlock Grid.Row="1" TextWrapping="Wrap" Foreground="DarkGray"
|
<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"
|
<StackPanel Grid.Row="2"
|
||||||
Visibility="{Binding InfoFormatShowDashes, Converter={StaticResource BoolToVis}}">
|
Visibility="{Binding InfoFormatShowDashes, Converter={StaticResource BoolToVis}}">
|
||||||
|
@@ -1768,6 +1768,16 @@ namespace SourceGen.WpfGui {
|
|||||||
}
|
}
|
||||||
private string mInfoPanelDetail1;
|
private string mInfoPanelDetail1;
|
||||||
|
|
||||||
|
public bool InfoShowDebug {
|
||||||
|
get {
|
||||||
|
#if DEBUG
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//public string InfoPanelMonoContents {
|
//public string InfoPanelMonoContents {
|
||||||
// get { return mInfoPanelMonoContents; }
|
// get { return mInfoPanelMonoContents; }
|
||||||
// set { mInfoPanelMonoContents = value; OnPropertyChanged(); }
|
// set { mInfoPanelMonoContents = value; OnPropertyChanged(); }
|
||||||
|
Reference in New Issue
Block a user