perf: Shut up another eslint error
The functions here are asynchronous to handle control back to the mainloop while waiting for an action to complete, not to run operations in parallel. That is, the race condition the rule is protecting against isn't an issue here, so disable the error. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/627
This commit is contained in:
parent
fda7c9b06e
commit
93a461f3f7
@ -126,9 +126,11 @@ function *run() {
|
|||||||
|
|
||||||
for (let i = 0; i < 2; i++) {
|
for (let i = 0; i < 2; i++) {
|
||||||
Scripting.scriptEvent('applicationsShowStart');
|
Scripting.scriptEvent('applicationsShowStart');
|
||||||
|
// eslint-disable-next-line require-atomic-updates
|
||||||
Main.overview._dash.showAppsButton.checked = true;
|
Main.overview._dash.showAppsButton.checked = true;
|
||||||
yield Scripting.waitLeisure();
|
yield Scripting.waitLeisure();
|
||||||
Scripting.scriptEvent('applicationsShowDone');
|
Scripting.scriptEvent('applicationsShowDone');
|
||||||
|
// eslint-disable-next-line require-atomic-updates
|
||||||
Main.overview._dash.showAppsButton.checked = false;
|
Main.overview._dash.showAppsButton.checked = false;
|
||||||
yield Scripting.waitLeisure();
|
yield Scripting.waitLeisure();
|
||||||
}
|
}
|
||||||
|
@ -126,6 +126,7 @@ function *run() {
|
|||||||
yield Scripting.sleep(1000);
|
yield Scripting.sleep(1000);
|
||||||
|
|
||||||
Scripting.scriptEvent('applicationsShowStart');
|
Scripting.scriptEvent('applicationsShowStart');
|
||||||
|
// eslint-disable-next-line require-atomic-updates
|
||||||
Main.overview._dash.showAppsButton.checked = true;
|
Main.overview._dash.showAppsButton.checked = true;
|
||||||
|
|
||||||
yield Scripting.waitLeisure();
|
yield Scripting.waitLeisure();
|
||||||
|
Loading…
Reference in New Issue
Block a user