This commit is contained in:
Eugene
2024-08-24 23:49:16 +02:00
parent 82013e3139
commit f0d228bb60
3 changed files with 2 additions and 20 deletions

View File

@@ -303,7 +303,7 @@ class ElectronFileUpload extends FileUpload {
private buffer: Buffer
private powerSaveBlocker = 0
constructor (private filePath: string, private electron: ElectronService, private relativePath: string|null = null ) {
constructor (private filePath: string, private electron: ElectronService) {
super()
this.buffer = Buffer.alloc(256 * 1024)
this.powerSaveBlocker = electron.powerSaveBlocker.start('prevent-app-suspension')
@@ -320,10 +320,6 @@ class ElectronFileUpload extends FileUpload {
return path.basename(this.filePath)
}
getRelativePath (): string|null {
return this.relativePath
}
getMode (): number {
return this.mode
}
@@ -366,10 +362,6 @@ class ElectronFileDownload extends FileDownload {
return path.basename(this.filePath)
}
getRelativePath (): null {
return null
}
getMode (): number {
return this.mode
}