This commit is contained in:
@ -170,7 +170,7 @@ function DiskImageList(p: {
|
||||
const [dlProgress, setDlProgress] = React.useState<undefined | number>();
|
||||
|
||||
// Convert disk image file
|
||||
const convertDiskImage = async (entry: DiskImage) => {
|
||||
const convertDiskImage = (entry: DiskImage) => {
|
||||
setCurrConversion(entry);
|
||||
};
|
||||
|
||||
@ -266,7 +266,7 @@ function DiskImageList(p: {
|
||||
return (
|
||||
<>
|
||||
<Tooltip title="Convert disk image">
|
||||
<IconButton onClick={() => convertDiskImage(params.row)}>
|
||||
<IconButton onClick={() => { convertDiskImage(params.row); }}>
|
||||
<LoopIcon />
|
||||
</IconButton>
|
||||
</Tooltip>
|
||||
@ -316,7 +316,9 @@ function DiskImageList(p: {
|
||||
{currConversion && (
|
||||
<ConvertDiskImageDialog
|
||||
image={currConversion}
|
||||
onCancel={() => setCurrConversion(undefined)}
|
||||
onCancel={() => {
|
||||
setCurrConversion(undefined);
|
||||
}}
|
||||
onFinished={() => {
|
||||
setCurrConversion(undefined);
|
||||
p.onReload();
|
||||
|
Reference in New Issue
Block a user