49.2.1
by Andrew Hayzen
- Added worker for adding rows to Library model (allows gui respond |
1 |
/*
|
409.3.70
by Victor Thompson
Update copyright |
2 |
* Copyright (C) 2013, 2014
|
3 |
* Andrew Hayzen <ahayzen@gmail.com>
|
|
4 |
* Daniel Holm <d.holmen@gmail.com>
|
|
5 |
* Victor Thompson <victor.thompson@gmail.com>
|
|
49.2.1
by Andrew Hayzen
- Added worker for adding rows to Library model (allows gui respond |
6 |
*
|
7 |
* This program is free software; you can redistribute it and/or modify
|
|
8 |
* it under the terms of the GNU General Public License as published by
|
|
9 |
* the Free Software Foundation; version 3.
|
|
10 |
*
|
|
11 |
* This program is distributed in the hope that it will be useful,
|
|
12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
14 |
* GNU General Public License for more details.
|
|
15 |
*
|
|
16 |
* You should have received a copy of the GNU General Public License
|
|
17 |
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
18 |
*/
|
|
19 |
||
20 |
||
21 |
WorkerScript.onMessage = function(msg) { |
|
77.2.1
by Andrew Hayzen
- Subsections of Artist, Album and Playlist page are now correctly |
22 |
if (msg.clear === true) |
23 |
{
|
|
24 |
msg.model.clear(); |
|
25 |
}
|
|
26 |
else
|
|
27 |
{
|
|
28 |
msg.model.append(msg.add); |
|
29 |
}
|
|
49.2.1
by Andrew Hayzen
- Added worker for adding rows to Library model (allows gui respond |
30 |
msg.model.sync(); // updates the changes to the list |
235.3.11
by Andrew Hayzen
* Fix for worker-script |
31 |
|
32 |
WorkerScript.sendMessage({}); |
|
49.2.1
by Andrew Hayzen
- Added worker for adding rows to Library model (allows gui respond |
33 |
}
|