mirror of
https://github.com/edeproject/ede.git
synced 2023-08-10 21:13:03 +03:00
Do not return from read_config() when configuration isn't present: applet will not be loaded.
This commit is contained in:
parent
756b95587d
commit
2726a2af37
@ -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)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user