Abstract electron settings properly to avoid boilerplate-hell (#8798)
* Remove unused method `BasePlatform::screenCaptureErrorString` * Improve platform typescripting * Remove redundant awaits * Abstract electron settings properly to avoid boilerplate-hell * i18n * Fix stray semi-colons * Fix setting level order for Platform settings
This commit is contained in:
parent
9b8b1d193e
commit
ba2ce5ecba
9 changed files with 122 additions and 220 deletions
|
@ -16,18 +16,8 @@ limitations under the License.
|
|||
|
||||
import { ActionPayload } from "../payloads";
|
||||
import { Action } from "../actions";
|
||||
import { UpdateCheckStatus } from "../../BasePlatform";
|
||||
import { UpdateStatus } from "../../BasePlatform";
|
||||
|
||||
export interface CheckUpdatesPayload extends ActionPayload {
|
||||
export interface CheckUpdatesPayload extends ActionPayload, UpdateStatus {
|
||||
action: Action.CheckUpdates;
|
||||
|
||||
/**
|
||||
* The current phase of the manual update check.
|
||||
*/
|
||||
status: UpdateCheckStatus;
|
||||
|
||||
/**
|
||||
* Detail string relating to the current status, typically for error details.
|
||||
*/
|
||||
detail?: string;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue