Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions deploy_ereader.sh
Original file line number Diff line number Diff line change
Expand Up @@ -451,13 +451,15 @@ then
fi

# Set proper permissions (Unix-specific)
echo -e "${GREEN}Setting permissions...${NC}"
if command -v chmod >/dev/null 2>&1; then
if ! chmod -R 755 "$DEVICE_PLUGIN_DIR/ereader.koplugin"; then
echo -e "${YELLOW}Warning: Failed to set permissions on plugin directory${NC}"
if [ "${PLATFORM}" != "WSL" ]; then
echo -e "${GREEN}Setting permissions...${NC}"
if command -v chmod >/dev/null 2>&1; then
if ! chmod -R 755 "$DEVICE_PLUGIN_DIR/ereader.koplugin"; then
echo -e "${YELLOW}Warning: Failed to set permissions on plugin directory${NC}"
fi
else
echo -e "${YELLOW}Warning: chmod not available, skipping permission setting${NC}"
fi
else
echo -e "${YELLOW}Warning: chmod not available, skipping permission setting${NC}"
fi

# Cross-platform device ejection
Expand Down
8 changes: 4 additions & 4 deletions plugins/ereader.koplugin/main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -901,10 +901,10 @@ function Ereader:archiveArticle(article)
UIManager:close(info)

if success then
UIManager:show(InfoMessage:new{
text = (did_enqueue and _("Article will be archived in next sync")) or _("Article archived"),
timeout = 2,
})
-- UIManager:show(InfoMessage:new{
-- text = (did_enqueue and _("Article will be archived in next sync")) or _("Article archived"),
-- timeout = 2,
-- })
-- Refresh the article list
self:showArticles()
else
Expand Down
10 changes: 5 additions & 5 deletions plugins/ereader.koplugin/readerereader.lua
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,10 @@ function ReaderEreader:onArchiveArticle()
UIManager:close(info)

if success then
UIManager:show(InfoMessage:new{
text = (did_enqueue and "Article will be archived in next sync") or "Article archived",
timeout = 2,
})
-- UIManager:show(InfoMessage:new{
-- text = (did_enqueue and "Article will be archived in next sync") or "Article archived",
-- timeout = 2,
-- })
-- Return to articles list
self:onBackToArticles()
else
Expand Down Expand Up @@ -715,4 +715,4 @@ function ReaderEreader:onClose()
end
end

return ReaderEreader
return ReaderEreader