mirror of
https://github.com/memen45/SubMusic.git
synced 2026-12-01 02:02:28 +01:00
added dynamic menus capability added note to user for possibly hanging sync fixed sync button when accessed from ConfigureSyncView
21 lines
370 B
MonkeyC
21 lines
370 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 ((d_callback == null)
|
|
|| (response == WatchUi.CONFIRM_NO)) {
|
|
return;
|
|
}
|
|
|
|
d_callback.invoke();
|
|
}
|
|
} |