mirror of
https://github.com/Eugeny/tabby.git
synced 2025-07-20 02:18:01 +00:00
preserve file modes for up- and downloads - fixes #4141
This commit is contained in:
@@ -108,8 +108,8 @@ export class WebPlatformService extends PlatformService {
|
||||
window.close()
|
||||
}
|
||||
|
||||
async startDownload (name: string, size: number): Promise<FileDownload|null> {
|
||||
const transfer = new HTMLFileDownload(name, size)
|
||||
async startDownload (name: string, mode: number, size: number): Promise<FileDownload|null> {
|
||||
const transfer = new HTMLFileDownload(name, mode, size)
|
||||
this.fileTransferStarted.next(transfer)
|
||||
return transfer
|
||||
}
|
||||
@@ -145,6 +145,7 @@ class HTMLFileDownload extends FileDownload {
|
||||
|
||||
constructor (
|
||||
private name: string,
|
||||
private mode: number,
|
||||
private size: number,
|
||||
) {
|
||||
super()
|
||||
@@ -154,6 +155,10 @@ class HTMLFileDownload extends FileDownload {
|
||||
return this.name
|
||||
}
|
||||
|
||||
getMode (): number {
|
||||
return this.mode
|
||||
}
|
||||
|
||||
getSize (): number {
|
||||
return this.size
|
||||
}
|
||||
|
Reference in New Issue
Block a user