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
1 changed files with 5 additions and 1 deletions

View File

@ -240,8 +240,12 @@ Panel::Panel() : PanelWindow(300, 30, "ede-panel") {
void Panel::read_config(void) {
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;
}
int tmp;
if(r.get("Panel", "position", tmp, PANEL_POSITION_BOTTOM)) {