Maximize main window if monitor removed/changed resolution (#2486)
* Maximize main window if monitor removed/changed resolution * Fix unit tests * Add better handlers to support active screen changes
This commit is contained in:
@@ -51,6 +51,9 @@ jest.mock('electron', () => ({
|
||||
handle: jest.fn(),
|
||||
emit: jest.fn(),
|
||||
},
|
||||
screen: {
|
||||
on: jest.fn(),
|
||||
},
|
||||
session: {
|
||||
defaultSession: {
|
||||
setSpellCheckerDictionaryDownloadURL: jest.fn(),
|
||||
|
Reference in New Issue
Block a user