Commit 61d78a49 authored by Alexandre Lision's avatar Alexandre Lision

call: expand Ring window on incoming call

If Ring is miniaturized, it now expands when an incoming call arrives

Issue: #81505
Change-Id: I3ef82210543a64d002603e257173e97df81e1a82
parent de0314b0
* Copyright (C) 2004-2015 Savoir-Faire Linux Inc.
* Copyright (C) 2015 Savoir-faire Linux Inc.
* Author: Alexandre Lision <>
* This program is free software; you can redistribute it and/or modify
......@@ -15,17 +15,6 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
* Additional permission under GNU GPL version 3 section 7:
* If you modify this program, or any covered work, by linking or
* combining it with the OpenSSL project's OpenSSL library (or a
* modified version of that library), containing parts covered by the
* terms of the OpenSSL or SSLeay licenses, Savoir-Faire Linux Inc.
* grants you additional permission to convey the resulting work.
* Corresponding Source for a non-source form of such a combination
* shall include the source code for the parts of OpenSSL used as well
* as that of the covered work.
#import "AppDelegate.h"
......@@ -79,8 +68,12 @@
[=](Call* call) {
BOOL shouldComeToForeground = [[NSUserDefaults standardUserDefaults] boolForKey:Preferences::WindowBehaviour];
BOOL shouldNotify = [[NSUserDefaults standardUserDefaults] boolForKey:Preferences::Notifications];
if (shouldComeToForeground) {
[NSApp activateIgnoringOtherApps:YES];
if ([self.ringWindowController.window isMiniaturized]) {
[self.ringWindowController.window deminiaturize:self];
if(shouldNotify) {
[self showIncomingNotification:call];
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment