Search found 95 matches

by TIV73
Fri Jun 21, 2019 3:45 pm
Forum: MediaMonkey 5 developer forum
Topic: window object inaccessible from an extension context
Replies: 2
Views: 2208

Re: window object inaccessible from an extension context

Holy cow, that worked! Thanks a lot, that was literally the last (known) bug I wanted to get rid of in the extension for the current version.
by TIV73
Sat Jun 15, 2019 11:14 am
Forum: MediaMonkey 5 developer forum
Topic: window object inaccessible from an extension context
Replies: 2
Views: 2208

window object inaccessible from an extension context

Hi, it seems like the (supposedly) global window object is not available fron the config menu of an addon. Well, a window object is available, but it's not the same object as the one from the main player. To verify, open the config menu of an application via Tools > Extensions. Inside the config men...
by TIV73
Sun Jun 09, 2019 2:34 am
Forum: Beta testing, bugs, and feature requests (MM5)
Topic: localRequirejs tries to load incorrect path
Replies: 1
Views: 433

localRequirejs tries to load incorrect path

Hi, I recently added a configuration screen to an extension, the (simplified) layout looks like this: myAddon/myAddon.js: myAddon = { someFunction: function(){ alert('some function') } } myAddon/info.json: { "config": "config.js", ... } myAddon/config.js: localRequirejs('myAddon') window.configInfo ...
by TIV73
Sun Jun 02, 2019 4:40 pm
Forum: MediaMonkey 5 developer forum
Topic: Missing property in window.mainMenuItems
Replies: 1
Views: 731

Missing property in window.mainMenuItems

Hi, I'm currently working on an extension that adds a new menu item which allows for easy access to extension actions. For that I'm creating a new menu with some submenus, add it to the mainMenuItems array, sort the array and force a refresh: let newMenu = { action: { title: function () { return _('...
by TIV73
Sat Jun 01, 2019 1:40 pm
Forum: Beta testing, bugs, and feature requests (MM5)
Topic: 2178: Exception when changing tracks too fast
Replies: 1
Views: 360

2178: Exception when changing tracks too fast

Hey everyone, when sequentially editing the same property of multiple tracks in fast succession while the property that's being changed is used for auto-sorting, it's possible to trigger a null reference exception. I haven't yet figured out the exact steps to reproduce the issue, but from the looks ...
by TIV73
Sat Jun 01, 2019 12:06 pm
Forum: Beta testing, bugs, and feature requests (MM5)
Topic: Wrong column is selected when clicking too close to the line border [#15720]
Replies: 1
Views: 505

Wrong column is selected when clicking too close to the line border [#15720]

Hey there, when trying to change the track properties by clicking on a track in the track list and pressing F2, it can happen that the wrong column is selected when clicking too close to the border of the respective line in the browser. Steps to reproduce: - Select a track in the track list - Press ...
by TIV73
Sun May 26, 2019 2:26 am
Forum: Beta testing, bugs, and feature requests (MM5)
Topic: 2178: Exception when calling getArrayBuffer()
Replies: 4
Views: 466

Re: 2178: Exception when calling getArrayBuffer()

Small update: I wanted to make sure that it's not just a handling issue related to async/await and tried it with promises: function WriteFile(fileName){ var exportObj = { "property1": "value1", "property2": "value2" } app.filesystem.saveTextToFileAsync(fileName, JSON.stringify(exportObj), 'UTF-8'); ...
by TIV73
Sat May 25, 2019 3:37 pm
Forum: Beta testing, bugs, and feature requests (MM5)
Topic: 2178: Exception when calling getArrayBuffer()
Replies: 4
Views: 466

Re: 2178: Exception when calling getArrayBuffer()

Isn't opening files for whatever reason kind of a common use case? It's not too far fetched to assume that after a file is read, it's modified by an external process and therefore needs to be loaded a second time. Besides, I'm not talking about reading the same file buffer twice in a row. What I mea...
by TIV73
Sat May 25, 2019 1:14 pm
Forum: Beta testing, bugs, and feature requests (MM5)
Topic: 2178: Exception when calling getArrayBuffer()
Replies: 4
Views: 466

2178: Exception when calling getArrayBuffer()

Hi there, I discovered some weird behavior when calling getArrayBuffer() on a file buffer. To reproduce run the following function: async function FileTest(){ var fileName = '[somefilename]' var exportObj = { "property1": "value1", "property2": "value2" } await app.filesystem.saveTextToFileAsync(fil...
by TIV73
Wed May 22, 2019 1:04 pm
Forum: MediaMonkey 5 developer forum
Topic: Creating a treeview object
Replies: 5
Views: 1289

Re: Creating a treeview object

That's neat, I thought you were supposed to create a new class. Thanks for the hint!
by TIV73
Wed May 22, 2019 1:00 pm
Forum: MediaMonkey 5 developer forum
Topic: Porting MM4 scripts
Replies: 50
Views: 40501

Re: Porting MM4 scripts

Let me elaborate on what I meant - I'm currently using a custom skin that I originally made (judging from the git log) june last year, which I based on one of the built-in skins. Since then, the built-in skins were constantly improved, which is a good thing of course, and I've been, mostly, trying t...
by TIV73
Tue May 21, 2019 2:01 pm
Forum: MediaMonkey 5 developer forum
Topic: Creating a treeview object
Replies: 5
Views: 1289

Re: Creating a treeview object

That was spot on. After implementing the suggestions, the exceptions that were thrown were specific enough to let me figure out what was wrong with the data structure I provided. Lo and behold my very own treeview https://i.imgur.com/kab8mTf.png I didn't, technically spearking, want to display a fol...
by TIV73
Mon May 20, 2019 3:59 pm
Forum: MediaMonkey 5 developer forum
Topic: Creating a treeview object
Replies: 5
Views: 1289

Creating a treeview object

Hi there, I'm trying to display hierarchical data and figured that the best way to do so would be a custom treeview element, but I cannot for the life of me get it to run. There are plenty of examples in various mm5 js files, but they are all rather lengthy and involved, usually spanning several fil...
by TIV73
Sat May 18, 2019 11:38 am
Forum: MediaMonkey 5 developer forum
Topic: Porting MM4 scripts
Replies: 50
Views: 40501

Re: Porting MM4 scripts

It's hard not to sympathize with both sides here. It's true, the backend switch kinda sucks. Years worth of functionality and support, in the form of addons, just go poof. This functionality can be rewritten of course, but that will take a considerable amount of time - and that's the best case scena...
by TIV73
Tue Feb 12, 2019 5:13 pm
Forum: Beta testing, bugs, and feature requests (MM5)
Topic: Remove option and recycle bin [#15577]
Replies: 10
Views: 2181

Re: Remove option and recycle bin

I can understand both use cases. Personally, I wouldn't mind if MediaMonkey bypasses the recycle bin and permanently deletes files as I can always restore them from a backup, but I can see why you might prefer files going to the recycle bin instead. Accidents happen, and there's no reason not to hav...