Skip to content

Commit ae9bd10

Browse files
committed
Fix state load error on numerical nil comparison
1 parent 3dd621a commit ae9bd10

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"addons": [
33
{
44
"id": "plugin_manager",
5-
"version": "0.1.1.2",
5+
"version": "0.1.1.3",
66
"description": "A GUI interface to Adam's pragtical plugin manager.",
77
"type": "plugin",
88
"path": "plugins/plugin_manager",

plugins/plugin_manager/plugin_view.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function PluginView.from_state(state)
6464
while not pv.initialized do
6565
coroutine.yield(0.3)
6666
end
67-
local offset = state.selected_plugin_idx
67+
local offset = state.selected_plugin_idx or 0
6868
if offset > 0 then
6969
pv.selected_plugin = pv:get_sorted_plugins()[offset]
7070
pv.selected_plugin_idx = offset

0 commit comments

Comments
 (0)