[MM-47754] Remove update from downloads when "Restart and Upgrade" is clicked (#2299)
* Remove update from downloads when "Restart and Upgrade" is clicked * Fix failing test * Mock downloadsManager in autoUpdater tests
This commit is contained in:
@@ -31,9 +31,9 @@ export default class JsonFileManager<T> {
|
||||
});
|
||||
}
|
||||
|
||||
setJson(json: T): void {
|
||||
async setJson(json: T): Promise<void> {
|
||||
this.json = json;
|
||||
this.writeToFile();
|
||||
await this.writeToFile();
|
||||
}
|
||||
|
||||
setValue(key: keyof T, value: T[keyof T]): void {
|
||||
|
Reference in New Issue
Block a user