New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
A few minor fixes after #4847 #4850
Merged
Merged
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
18edeed
Add a button to toggle the C blitter on or off in the Dev menu.
NiLuJe 4e88416
Don't call setText on an empty string in the status bar
NiLuJe 73135ca
Provided we're not in all at once mode (where thing sare apparently more
NiLuJe 8cac92d
Update a few sizeUtf8Text call sites that were doing a nil check ;).
NiLuJe 5074428
Update frontend/apps/filemanager/filemanagermenu.lua
Frenzie d8a9e1f
putenv is now in the posix module ;)
NiLuJe 750c4e3
Store the CBB flag in an env var, to avoid G_reader_settings in base
NiLuJe 5cc5556
Switch to setenv/unsetenv on Posix
NiLuJe 0bb07de
Add a "next restart" popup for 8bpp/cbb switch
NiLuJe 47f7149
Bump base to pickup companion changes
NiLuJe File filter
Filter by extension
Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -260,6 +260,29 @@ function FileManagerMenu:setUpdateItemTable() | |
end, | ||
callback = function() | ||
G_reader_settings:flipNilOrFalse("dev_startup_no_fbdepth") | ||
local InfoMessage = require("ui/widget/infomessage") | ||
UIManager:show(InfoMessage:new{ | ||
text = _("This will take effect on next restart."), | ||
}) | ||
end, | ||
}) | ||
end | ||
if not Device.should_restrict_JIT then | ||
table.insert(self.menu_items.developer_options.sub_item_table, { | ||
text = _("Disable C blitter"), | ||
enabled_func = function() | ||
local lfs = require("libs/libkoreader-lfs") | ||
return lfs.attributes("libs/libblitbuffer.so", "mode") == "file" | ||
end, | ||
checked_func = function() | ||
return G_reader_settings:isTrue("dev_no_c_blitter") | ||
end, | ||
callback = function() | ||
G_reader_settings:flipNilOrFalse("dev_no_c_blitter") | ||
local InfoMessage = require("ui/widget/infomessage") | ||
UIManager:show(InfoMessage:new{ | ||
text = _("This will take effect on next restart."), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as above. Something like |
||
}) | ||
end, | ||
}) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might as well write something more specific, like
The new bit depth will take effect after restarting KOReader.
orKOReader will need to restart to enable the new bit depth.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Incidentally, I've been thinking that messages of this type could also consider using a ConfirmBox or something instead, with the cancel/OK buttons reading
Restart later
andRestart now
.Edit: although that might be slightly more problematic with platforms where restarting can only be manual. Just a generic thinking aloud, nothing to fix before merging. ;-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mainly went with that generic wording because it's already used elsewhere, so, already translated ;).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's true. On the flipside, the previous translation will show up as an
xx %
match so it can be more easily adapted than starting from scratch. Since it's a more advanced config section I suppose we should just leave it then. :-)