Plugin.{Data,Object}.preferences() throws Error.
This commit is contained in:
parent
9d0387c4dc
commit
3f69ecc94e
|
@ -108,8 +108,15 @@ namespace LAview.Desktop {
|
|||
for (int i = indices.length; i > 0;)
|
||||
foreach (var p in AppCore.core.data_plugins.entries)
|
||||
if (indices[--i] == 0) {
|
||||
try {
|
||||
p.value.preferences(dialog);
|
||||
break;
|
||||
} catch (Error err) {
|
||||
var msg = new MessageDialog (dialog, DialogFlags.MODAL, MessageType.ERROR,
|
||||
ButtonsType.CLOSE, _("Error: ")+err.message);
|
||||
msg.response.connect ((response_id) => { msg.destroy (); } );
|
||||
msg.show ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -118,8 +125,15 @@ namespace LAview.Desktop {
|
|||
for (int i = indices.length; i > 0;)
|
||||
foreach (var p in AppCore.core.object_plugins.entries)
|
||||
if (indices[--i] == 0) {
|
||||
try {
|
||||
p.value.preferences(dialog);
|
||||
break;
|
||||
} catch (Error err) {
|
||||
var msg = new MessageDialog (dialog, DialogFlags.MODAL, MessageType.ERROR,
|
||||
ButtonsType.CLOSE, _("Error: ")+err.message);
|
||||
msg.response.connect ((response_id) => { msg.destroy (); } );
|
||||
msg.show ();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue