MM-62005 Change UrlView to always stay mounted (#3453)

* MM-62005 Change UrlView to always stay mounted

* Rename message for URL view and corresponding methods

* Change log level
This commit is contained in:
Harrison Healey
2025-07-04 09:37:13 -04:00
committed by GitHub
parent 8778edd238
commit 9d26b01ef5
6 changed files with 65 additions and 34 deletions

View File

@@ -100,6 +100,7 @@ import {
LOAD_INCOMPATIBLE_SERVER,
OPEN_SERVER_UPGRADE_LINK,
OPEN_CHANGELOG_LINK,
SET_URL_FOR_URL_VIEW,
} from 'common/communication';
console.log('Preload initialized');
@@ -188,6 +189,7 @@ contextBridge.exposeInMainWorld('desktop', {
onUpdateDownloadsDropdown: (listener) => ipcRenderer.on(UPDATE_DOWNLOADS_DROPDOWN, (_, downloads, darkMode, windowBounds, item) => listener(downloads, darkMode, windowBounds, item)),
onAppMenuWillClose: (listener) => ipcRenderer.on(APP_MENU_WILL_CLOSE, () => listener()),
onFocusThreeDotMenu: (listener) => ipcRenderer.on(FOCUS_THREE_DOT_MENU, () => listener()),
onSetURLForURLView: (listener) => ipcRenderer.on(SET_URL_FOR_URL_VIEW, (_, url) => listener(url)),
updateURLViewWidth: (width) => ipcRenderer.send(UPDATE_URL_VIEW_WIDTH, width),
openNotificationPreferences: () => ipcRenderer.send(OPEN_NOTIFICATION_PREFERENCES),
openWindowsCameraPreferences: () => ipcRenderer.send(OPEN_WINDOWS_CAMERA_PREFERENCES),