mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
[GUI] Do not allow buttons in device view to be clicked before media is inserted.
This commit is contained in:
@@ -614,10 +614,12 @@
|
||||
Orientation="Horizontal"
|
||||
Spacing="8"
|
||||
HorizontalAlignment="Right">
|
||||
<Button Command="{Binding DumpCommand, Mode=OneWay}">
|
||||
<Button Command="{Binding DumpCommand, Mode=OneWay}"
|
||||
IsEnabled="{Binding MediaIsInserted, Mode=OneWay}">
|
||||
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Dump_media_to_image}" />
|
||||
</Button>
|
||||
<Button Command="{Binding ScanCommand, Mode=OneWay}">
|
||||
<Button Command="{Binding ScanCommand, Mode=OneWay}"
|
||||
IsEnabled="{Binding MediaIsInserted, Mode=OneWay}">
|
||||
<TextBlock Text="{x:Static localization:UI.ButtonLabel_Scan_media_surface}" />
|
||||
</Button>
|
||||
</StackPanel>
|
||||
|
||||
Reference in New Issue
Block a user