mirror of
https://github.com/memen45/SubMusic.git
synced 2026-12-05 04:57:28 +01:00
- fixed progressbar - only count songs that are not yet local - fixed crash on sync empty playlist (progress divide by 0) - fixed initial Sync setup (removed deprecated uses) - fixed crashes on Error handling - added last sync time record - added support for descentmk2 device
19 lines
337 B
MonkeyC
19 lines
337 B
MonkeyC
using Toybox.WatchUi;
|
|
|
|
class SubMusicConfirmationDelegate extends WatchUi.ConfirmationDelegate {
|
|
|
|
var d_callback;
|
|
|
|
function initialize(callback) {
|
|
ConfirmationDelegate.initialize();
|
|
|
|
d_callback = callback;
|
|
}
|
|
|
|
function onResponse(response) {
|
|
if (response != WatchUi.CONFIRM_YES) {
|
|
return;
|
|
}
|
|
d_callback.invoke();
|
|
}
|
|
} |