update common/src/main/ets/default/model/common/ScreenManager.ts.

Signed-off-by: liujuan <liujuan76@h-partners.com>
This commit is contained in:
liujuan 2023-12-18 02:43:47 +00:00 committed by Gitee
parent a09d0d9154
commit 5c86f46048
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -182,7 +182,11 @@ export class ScreenManager {
destroyWindowMode(): void {
Log.debug(TAG, `start to destory photos application window mode: ${this.windowMode}`);
this.mainWindow && this.destroyMainWindow();
try {
this.mainWindow.off('windowSizeChange');
} catch (error) {
Log.error(TAG, `destroy window error: ${error}`);
}
}
isSplitMode(): boolean {