diff options
-rw-r--r-- | plugins/mRadio/i_tray.inc | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/plugins/mRadio/i_tray.inc b/plugins/mRadio/i_tray.inc index 02d1ae5fd8..75ad569839 100644 --- a/plugins/mRadio/i_tray.inc +++ b/plugins/mRadio/i_tray.inc @@ -82,10 +82,7 @@ begin begin
mFreeMem(tmp.name);
DestroyServiceFunction(tmp.service);
- if doTray then
- CallService(MS_CLIST_REMOVETRAYMENUITEM,tmp.menuitem,0)
- else
- CallService(MO_REMOVEMENUITEM,tmp.menuitem,0);
+ CallService(MO_REMOVEMENUITEM,tmp.menuitem,0);
mFreeMem(tmp);
List_Remove(@trayStations,i);
end;
@@ -307,15 +304,11 @@ begin tmp:=pTrayRadioStation(trayStations.Items[i]);
mFreeMem(tmp.name);
DestroyServiceFunction(tmp.service);
-// CallService(MS_CLIST_REMOVETRAYMENUITEM,tmp.menuitem,0);
mFreeMem(tmp);
end;
List_Destroy(@trayStations);
DestroyServiceFunction(srvtrayplaypause);
DestroyServiceFunction(srvtraystop);
- if doTray then
- CallService(MS_CLIST_REMOVETRAYMENUITEM,trayradioparent,0)
- else
- CallService(MO_REMOVEMENUITEM,trayradioparent,0);
+ CallService(MO_REMOVEMENUITEM,trayradioparent,0);
end;
|