Files
SubMusic/source/View/SubMusicMenuAbout.mc
memen45 1f89b8aeb4 fixed pre loading of all nested menus (now only when opened)
improved sync speed long playlists
fixed ArtWork sync crash
2021-09-18 18:45:18 +02:00

36 lines
886 B
MonkeyC

using Toybox.WatchUi;
using Toybox.Communications;
using Toybox.Application;
using SubMusic.Menu;
module SubMusic {
module Menu {
class About extends MenuBase {
function initialize() {
MenuBase.initialize(WatchUi.loadResource(Rez.Strings.About_label), false);
}
function load() {
System.println("Menu.About::load()");
return MenuBase.load([
{
LABEL => WatchUi.loadResource(Rez.Strings.Version_label),
SUBLABEL => (new SubMusicVersion(null)).toString(),
METHOD => "version", // not used, null does not work
},
new Menu.AboutSettings(),
{
LABEL => WatchUi.loadResource(Rez.Strings.Donate_label),
SUBLABEL => null,
METHOD => method(:onDonate),
},
]);
}
static function onDonate() {
WatchUi.pushView(new DonateView(), new DonateDelegate(), WatchUi.SLIDE_IMMEDIATE);
}
}
}
}