Fixed Snap issue with resizing on Windows 11 (#2686)
* Fixed Snap issue with resizing on Windows 11 * Run on focus/blur as well * Whoops, left my logging changes * Fix tests
This commit is contained in:
@@ -462,6 +462,7 @@ describe('main/windows/mainWindow', () => {
|
||||
};
|
||||
BrowserWindow.mockImplementation(() => window);
|
||||
const mainWindow = new MainWindow();
|
||||
mainWindow.getBounds = jest.fn();
|
||||
mainWindow.init();
|
||||
Object.defineProperty(process, 'platform', {
|
||||
value: originalPlatform,
|
||||
|
Reference in New Issue
Block a user