mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 19:13:49 +01:00
Merge pull request #2580 from deathly809/bug/cancel_should_clear_focus
Ensure that we leave focus when we call stopAction or cancel working
This commit is contained in:
commit
37401f0917
@ -735,6 +735,7 @@ export function NetscriptSingularity(
|
|||||||
helper.checkSingularityAccess("stopAction");
|
helper.checkSingularityAccess("stopAction");
|
||||||
if (player.isWorking) {
|
if (player.isWorking) {
|
||||||
if (player.focus) {
|
if (player.focus) {
|
||||||
|
player.stopFocusing();
|
||||||
Router.toTerminal();
|
Router.toTerminal();
|
||||||
}
|
}
|
||||||
const txt = player.singularityStopWork();
|
const txt = player.singularityStopWork();
|
||||||
|
@ -729,6 +729,7 @@ export function finishWork(this: IPlayer, cancelled: boolean, sing = false): str
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.isWorking = false;
|
this.isWorking = false;
|
||||||
|
this.focus = false;
|
||||||
|
|
||||||
this.resetWorkStatus();
|
this.resetWorkStatus();
|
||||||
if (sing) {
|
if (sing) {
|
||||||
|
Loading…
Reference in New Issue
Block a user