mirror of
https://github.com/jamessanford/kegs.git
synced 2024-06-08 06:29:29 +00:00
Remove 'Ignore disk' menu option.
This commit is contained in:
parent
052f96c54d
commit
6306a98a05
|
@ -29,13 +29,11 @@
|
||||||
<string name="zipfile_nomatches">No disk images found</string>
|
<string name="zipfile_nomatches">No disk images found</string>
|
||||||
|
|
||||||
<string-array name="swapdisk_choices">
|
<string-array name="swapdisk_choices">
|
||||||
<item>Ignore this disk</item>
|
|
||||||
<item>Put disk into drive</item>
|
<item>Put disk into drive</item>
|
||||||
<item>Boot this disk</item>
|
<item>Boot this disk</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
||||||
<string-array name="swapdisk_hd_choices">
|
<string-array name="swapdisk_hd_choices">
|
||||||
<item>Ignore this disk</item>
|
|
||||||
<item>Attach hard drive</item>
|
<item>Attach hard drive</item>
|
||||||
<item>Boot this disk</item>
|
<item>Boot this disk</item>
|
||||||
</string-array>
|
</string-array>
|
||||||
|
|
|
@ -26,11 +26,9 @@ public class SwapDiskFragment extends SherlockDialogFragment {
|
||||||
public void onClick(DialogInterface dialog, int item) {
|
public void onClick(DialogInterface dialog, int item) {
|
||||||
dismiss();
|
dismiss();
|
||||||
if (item == 0) {
|
if (item == 0) {
|
||||||
// ignore this image
|
|
||||||
} else if (item == 1) {
|
|
||||||
mImage.action = DiskImage.SWAP; // just a disk insert
|
mImage.action = DiskImage.SWAP; // just a disk insert
|
||||||
((KegsMain)getActivity()).loadDiskImage(mImage);
|
((KegsMain)getActivity()).loadDiskImage(mImage);
|
||||||
} else if (item == 2) {
|
} else if (item == 1) {
|
||||||
mImage.action = DiskImage.BOOT; // was ASK
|
mImage.action = DiskImage.BOOT; // was ASK
|
||||||
((KegsMain)getActivity()).loadDiskImage(mImage);
|
((KegsMain)getActivity()).loadDiskImage(mImage);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user