mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:37:35 +00:00
ClipboardHistory: Use config file to set number of history items
The number of items in history was hardcoded to 20 earlier, now we try to load this value from a config file. The default if none is available is still 20.
This commit is contained in:
parent
b9979e9a59
commit
b1a3bb638b
4 changed files with 14 additions and 2 deletions
|
@ -5,6 +5,7 @@
|
|||
*/
|
||||
|
||||
#include "ClipboardHistoryModel.h"
|
||||
#include <LibConfig/Client.h>
|
||||
#include <LibGUI/Action.h>
|
||||
#include <LibGUI/Application.h>
|
||||
#include <LibGUI/ImageWidget.h>
|
||||
|
@ -23,6 +24,8 @@ int main(int argc, char* argv[])
|
|||
|
||||
auto app = GUI::Application::construct(argc, argv);
|
||||
|
||||
Config::pledge_domains("ClipboardHistory");
|
||||
|
||||
if (pledge("stdio recvfd sendfd rpath", nullptr) < 0) {
|
||||
perror("pledge");
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue