Do not return from read_config() when configuration isn't present: applet will not be loaded.

This commit is contained in:
Sanel Zukan 2013-06-06 09:00:44 +00:00
parent 756b95587d
commit 2726a2af37

View File

@ -240,8 +240,12 @@ Panel::Panel() : PanelWindow(300, 30, "ede-panel") {
void Panel::read_config(void) { void Panel::read_config(void) {
Resource r; Resource r;
if(!r.load("ede-panel"))
/* try to load applets even if panel configuration isn't present */
if(E_UNLIKELY(r.load("ede-panel") == false)) {
load_applets();
return; return;
}
int tmp; int tmp;
if(r.get("Panel", "position", tmp, PANEL_POSITION_BOTTOM)) { if(r.get("Panel", "position", tmp, PANEL_POSITION_BOTTOM)) {