mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
Allow sharing files with guest using UI, even with custom profile (#702)
The 9p filesystem is always accessible by the guest, even if the UI is hidden. This will make the file picker UI be shown when needed
This commit is contained in:
parent
a50c6e2bbc
commit
b96665285b
2 changed files with 8 additions and 0 deletions
|
|
@ -733,6 +733,7 @@ Virtio9p.prototype.ReceiveRequest = async function (bufchain) {
|
|||
marshall.Marshall(["Q"], [inode.qid], this.replybuffer, 7);
|
||||
this.BuildReply(id, tag, 13);
|
||||
this.SendReply(bufchain);
|
||||
this.bus.send("9p-attach");
|
||||
break;
|
||||
|
||||
case 108: // tflush
|
||||
|
|
|
|||
|
|
@ -1268,6 +1268,13 @@
|
|||
{
|
||||
init_filesystem_panel(emulator);
|
||||
}
|
||||
else
|
||||
{
|
||||
emulator.add_listener("9p-attach", function()
|
||||
{
|
||||
init_filesystem_panel(emulator);
|
||||
});
|
||||
}
|
||||
|
||||
$("run").onclick = function()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue