mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
Revert "Logs button reopens log window"
This reverts commit 01efd372e95628d419575ade0e6536a458fd61d2.
This commit is contained in:
parent
8b69fd7faa
commit
e38010a9a4
@ -39,14 +39,12 @@ export function LogBoxManager(): React.ReactElement {
|
||||
() =>
|
||||
LogBoxEvents.subscribe((script: RunningScript) => {
|
||||
const id = script.server + "-" + script.filename + script.args.map((x: any): string => `${x}`).join("-");
|
||||
if (logs.find((l) => l.id === id)) close(id);
|
||||
Promise.resolve().then(() => {
|
||||
logs.push({
|
||||
id: id,
|
||||
script: script,
|
||||
});
|
||||
rerender();
|
||||
})
|
||||
if (logs.find((l) => l.id === id)) return;
|
||||
logs.push({
|
||||
id: id,
|
||||
script: script,
|
||||
});
|
||||
rerender();
|
||||
}),
|
||||
[],
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user