Fix data/object->preferences() calls.
This commit is contained in:
parent
f062689584
commit
4b66489034
|
@ -105,9 +105,9 @@ namespace LAview.Desktop {
|
||||||
|
|
||||||
void call_data_preferences () {
|
void call_data_preferences () {
|
||||||
var indices = get_data_indices ();
|
var indices = get_data_indices ();
|
||||||
for (int i = indices.length; i > 0;)
|
var i = indices[0];
|
||||||
foreach (var p in AppCore.core.data_plugins.entries)
|
foreach (var p in AppCore.core.data_plugins.entries)
|
||||||
if (indices[--i] == 0) {
|
if (i-- == 0) {
|
||||||
try {
|
try {
|
||||||
p.value.preferences(dialog);
|
p.value.preferences(dialog);
|
||||||
break;
|
break;
|
||||||
|
@ -122,9 +122,9 @@ namespace LAview.Desktop {
|
||||||
|
|
||||||
void call_object_preferences () {
|
void call_object_preferences () {
|
||||||
var indices = get_objects_indices ();
|
var indices = get_objects_indices ();
|
||||||
for (int i = indices.length; i > 0;)
|
var i = indices[0];
|
||||||
foreach (var p in AppCore.core.object_plugins.entries)
|
foreach (var p in AppCore.core.object_plugins.entries)
|
||||||
if (indices[--i] == 0) {
|
if (i-- == 0) {
|
||||||
try {
|
try {
|
||||||
p.value.preferences(dialog);
|
p.value.preferences(dialog);
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue