-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a09ca7
commit 60d2710
Showing
3 changed files
with
46 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
"use strict"; | ||
|
||
/* | ||
* Copyright (C) 2020-2021 UBports Foundation <[email protected]> | ||
* Copyright (C) 2020-2022 UBports Foundation <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -115,9 +115,7 @@ class PluginIndex { | |
.init() | ||
.then(initSuccessful => { | ||
if (!initSuccessful) { | ||
this.log.warn( | ||
`Disabling plugin ${name} because it failed to initialize with result: ${initSuccessful}` | ||
); | ||
this.log.warn(`Failed to initialize plugin ${name}, disabling`); | ||
delete this.plugins[name]; | ||
} | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
"use strict"; | ||
|
||
/* | ||
* Copyright (C) 2017-2020 UBports Foundation <[email protected]> | ||
* Copyright (C) 2017-2022 UBports Foundation <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -23,6 +23,7 @@ const window = require("./window.js"); | |
const udev = require("./udev.js"); | ||
const settings = require("./settings.js"); | ||
const cache = require("./cache.js"); | ||
const mainEvent = require("./mainEvent.js"); | ||
const reporter = require("./reporter.js"); | ||
|
||
class MenuManager { | ||
|
@@ -121,6 +122,12 @@ class MenuManager { | |
settings.clear(); | ||
}, | ||
visible: settings.size | ||
}, | ||
{ | ||
label: "Restart UBports Installer", | ||
click: () => { | ||
mainEvent.emit("restart"); | ||
} | ||
} | ||
] | ||
}, | ||
|