[MM-40822] Remove app.dock.show from restoreMain (#1945)
* [MM-40822] Remove app.dock.show from restoreMain * Removed the test
This commit is contained in:
@@ -304,19 +304,6 @@ describe('main/windows/windowManager', () => {
|
|||||||
expect(windowManager.settingsWindow.focus).toHaveBeenCalled();
|
expect(windowManager.settingsWindow.focus).toHaveBeenCalled();
|
||||||
windowManager.settingsWindow.focus.mockClear();
|
windowManager.settingsWindow.focus.mockClear();
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should call macOS show on macOS', () => {
|
|
||||||
windowManager.mainWindow.isVisible.mockReturnValue(false);
|
|
||||||
const originalPlatform = process.platform;
|
|
||||||
Object.defineProperty(process, 'platform', {
|
|
||||||
value: 'darwin',
|
|
||||||
});
|
|
||||||
windowManager.restoreMain();
|
|
||||||
Object.defineProperty(process, 'platform', {
|
|
||||||
value: originalPlatform,
|
|
||||||
});
|
|
||||||
expect(app.dock.show).toHaveBeenCalled();
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
describe('flashFrame', () => {
|
describe('flashFrame', () => {
|
||||||
|
@@ -230,9 +230,6 @@ export class WindowManager {
|
|||||||
} else {
|
} else {
|
||||||
this.mainWindow!.focus();
|
this.mainWindow!.focus();
|
||||||
}
|
}
|
||||||
if (process.platform === 'darwin') {
|
|
||||||
app.dock.show();
|
|
||||||
}
|
|
||||||
} else if (this.settingsWindow) {
|
} else if (this.settingsWindow) {
|
||||||
this.settingsWindow.focus();
|
this.settingsWindow.focus();
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user