mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-09-24 07:23:24 +02:00
fix circular dependency
This commit is contained in:
parent
03e4d8a2a7
commit
4bbbb1298f
@ -1,12 +1,12 @@
|
||||
import { globalScene } from "#app/global-scene";
|
||||
import { SettingsDisplayUiHandler } from "#ui/settings-display-ui-handler";
|
||||
import type { SettingsDisplayUiHandler } from "#ui/settings-display-ui-handler";
|
||||
import i18next from "i18next";
|
||||
|
||||
const cancelHandler = () => {
|
||||
globalScene.ui.revertMode();
|
||||
const handler = globalScene.ui.getHandler();
|
||||
// Reset the cursor to the current language, if in the settings menu
|
||||
if (handler instanceof SettingsDisplayUiHandler) {
|
||||
if (handler && typeof (handler as SettingsDisplayUiHandler).setOptionCursor === "function") {
|
||||
(handler as SettingsDisplayUiHandler).setOptionCursor(-1, 0, true);
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user