Skip to content

Commit

Permalink
Only show network monitor for network games
Browse files Browse the repository at this point in the history
  • Loading branch information
IntelOrca committed Feb 27, 2021
1 parent ef6479f commit 8dfad8c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/networkMonitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,10 @@ namespace NetworkMonitor {
}

export function register() {
ui.registerMenuItem('Network Monitor', function () {
getOrOpen();
});
if (DEBUG || network.mode != 'none') {
ui.registerMenuItem('Network Monitor', function () {
getOrOpen();
});
}
}
}

0 comments on commit 8dfad8c

Please sign in to comment.