1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-11-07 10:46:24 +03:00

Allow configuration of whether closing window closes or minimizes to tray

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski
2019-02-24 01:06:53 +00:00
parent 150c941340
commit b02b371250
3 changed files with 51 additions and 3 deletions

View File

@@ -113,4 +113,29 @@ export default class BasePlatform {
reload() {
throw new Error("reload not implemented!");
}
supportsAutoLaunch() {
return false;
}
// XXX: Surely this should be a setting like any other?
async getAutoLaunchEnabled() {
return false;
}
async setAutoLaunchEnabled(enabled) {
throw new Error("Unimplemented");
}
supportsMinimizeToTray() {
return false;
}
async getMinimizeToTrayEnabled() {
return false;
}
async setMinimizeToTrayEnabled() {
throw new Error("Unimplemented");
}
}