Added the possibility to open the dev tools within the client menu
This commit is contained in:
parent
c46d33f3b5
commit
951aad0d1f
1 changed files with 11 additions and 2 deletions
|
@ -41,6 +41,8 @@ namespace top_menu {
|
|||
open_change_log();
|
||||
|
||||
quit();
|
||||
|
||||
show_dev_tools(): boolean;
|
||||
}
|
||||
export let native_actions: NativeActions;
|
||||
|
||||
|
@ -503,13 +505,20 @@ namespace top_menu {
|
|||
}
|
||||
|
||||
item = menu.append_item(tr("Visit TeaSpeak.de"));
|
||||
//TODO: Client direct browser?
|
||||
item.click(() => window.open('https://teaspeak.de/', '_blank'));
|
||||
|
||||
item = menu.append_item(tr("Visit TeaSpeak forum"));
|
||||
//TODO: Client direct browser?
|
||||
item.click(() => window.open('https://forum.teaspeak.de/', '_blank'));
|
||||
|
||||
if(!app.is_web() && typeof(native_actions.show_dev_tools) && native_actions.show_dev_tools()) {
|
||||
menu.append_hr();
|
||||
item = menu.append_item(tr("Open developer tools"));
|
||||
item.click(() => native_actions.open_dev_tools());
|
||||
|
||||
item = menu.append_item(tr("Reload UI"));
|
||||
item.click(() => native_actions.reload_page());
|
||||
}
|
||||
|
||||
menu.append_hr();
|
||||
item = menu.append_item(app.is_web() ? tr("About TeaWeb") : tr("About TeaClient"));
|
||||
item.click(() => Modals.spawnAbout())
|
||||
|
|
Loading…
Add table
Reference in a new issue