Skip to content

Commit

Permalink
LuaFAR: viewer.Quit() returns a boolean (was: nothing)
Browse files Browse the repository at this point in the history
  • Loading branch information
shmuz committed Oct 28, 2024
1 parent 2dc2f02 commit 144260c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/luamacro/_globalinfo.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function export.GetGlobalInfo()
return {
Version = { 3, 0, 0, 854 },
Version = { 3, 0, 0, 855 },
MinFarVersion = { 3, 0, 0, 6380 },
Guid = win.Uuid("4EBBEFC8-2084-4B7F-94C0-692CE136894D"),
Title = "LuaMacro",
Expand Down
4 changes: 4 additions & 0 deletions plugins/luamacro/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
shmuel 2024-10-28 21:17:03+02:00 - build 855

1. LuaFAR: viewer.Quit() returns a boolean (was: nothing).

shmuel 2024-10-09 23:52:28+03:00 - build 854

1. Refactoring
Expand Down
4 changes: 2 additions & 2 deletions plugins/luamacro/luafar/service.c
Original file line number Diff line number Diff line change
Expand Up @@ -4272,8 +4272,8 @@ static int viewer_Quit(lua_State *L)
{
intptr_t ViewerId = luaL_optinteger(L, 1, -1);
PSInfo *Info = GetPluginData(L)->Info;
Info->ViewerControl(ViewerId, VCTL_QUIT, 0, 0);
return 0;
lua_pushboolean(L, Info->ViewerControl(ViewerId, VCTL_QUIT, 0, 0));
return 1;
}

static int viewer_Redraw(lua_State *L)
Expand Down
2 changes: 1 addition & 1 deletion plugins/luamacro/luafar/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#include <farversion.hpp>

#define PLUGIN_BUILD 854
#define PLUGIN_BUILD 855

0 comments on commit 144260c

Please sign in to comment.