Simplification.

This commit is contained in:
Marcus Wichelmann 2014-11-15 18:37:28 +01:00
parent 370a4e932b
commit 03bb3a941d

View File

@ -160,20 +160,8 @@ namespace Gala.Plugins.Notify
if (!confirmation) { if (!confirmation) {
var app_found = false; var app_found = false;
string param_bubbles; var param_bubbles = options.default_bubbles ? "show" : "hide";
string param_sounds; var param_sounds = options.default_sounds ? "on" : "off";
if (options.default_bubbles) {
param_bubbles = "show";
} else {
param_bubbles = "hide";
}
if (options.default_sounds) {
param_sounds = "on";
} else {
param_sounds = "off";
}
for (int i = 0; i < options.apps.length; i++) { for (int i = 0; i < options.apps.length; i++) {
var properties = options.apps[i].split (":"); var properties = options.apps[i].split (":");