`;
GPClient = class GPClient extends this.OS.application.BaseApplication {
constructor(args) {
super("GPClient", args);
}
main() {
if (!this.setting.clients) {
this.setting.clients = [];
}
this.container = this.find("container");
this.bindKey("CTRL-M", () => {
return this.openDialog(new ClientListDialog(), {
title: __("Client Manager")
});
});
return this.switchClient();
}
switchClient() {
if (this.setting.curl) {
this.container.src = this.setting.curl;
return this.scheme.apptitle = this.setting.cname;
} else {
return this.notify(__("No client selected, manager client in menu Options > Client manager"));
}
}
menu() {
return [
{
text: "__(Options)",
nodes: [
{
text: "__(Client manager)",
shortcut: "C-M"
}
],
onchildselect: (e) => {
return this.openDialog(new ClientListDialog(),
{
title: __("Client Manager")
});
}
}
];
}
};
GPClient.singleton = true;
this.OS.register("GPClient", GPClient);
}).call(this);