mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
fix: sessionData not being saved after mission reload
This commit is contained in:
@@ -1159,7 +1159,7 @@ export class Map extends L.Map {
|
||||
}
|
||||
|
||||
#onLeftMouseLongClick(e: any) {
|
||||
if (this.#isDragging || this.#isSelecting) return;
|
||||
if (this.#isDragging || this.#isSelecting || this.#isZooming) return;
|
||||
console.log(`Left long click at ${e.latlng}`);
|
||||
|
||||
if (getApp().getState() === OlympusState.UNIT_CONTROL) {
|
||||
|
||||
@@ -17,7 +17,6 @@ import {
|
||||
} from "../constants/constants";
|
||||
import {
|
||||
AirbasesData,
|
||||
AlarmState,
|
||||
BullseyesData,
|
||||
CommandModeOptions,
|
||||
GeneralSettings,
|
||||
@@ -816,6 +815,7 @@ export class ServerManager {
|
||||
}
|
||||
|
||||
checkSessionHash(newSessionHash: string) {
|
||||
console.log(`Checking session hash: ${newSessionHash}`);
|
||||
if (this.#sessionHash != null) {
|
||||
if (newSessionHash !== this.#sessionHash) location.reload();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user