mirror of
https://github.com/elementary/gala.git
synced 2024-12-25 02:02:11 +03:00
Simplification.
This commit is contained in:
parent
370a4e932b
commit
03bb3a941d
@ -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 (":");
|
||||||
|
Loading…
Reference in New Issue
Block a user