uicmd.cc exports a get()/set() interface to the default save directory that is never used elsewhere, and used only trivially internally. It also rereads prefs.save_dir at every save, which is redundant. It would be simpler to have an init() interface that is called once. There would be no change to the user. Patch attached. Thoughts? Regards, Jeremy Henty
Jeremy wrote:
uicmd.cc exports a get()/set() interface to the default save directory that is never used elsewhere, and used only trivially internally. It also rereads prefs.save_dir at every save, which is redundant. It would be simpler to have an init() interface that is called once. There would be no change to the user.
Patch attached. Thoughts?
Seems like a good change to make...
corvid wrote:
Jeremy wrote:
uicmd.cc exports a get()/set() interface to the default save directory that is never used elsewhere, and used only trivially internally. It also rereads prefs.save_dir at every save, which is redundant. It would be simpler to have an init() interface that is called once. There would be no change to the user.
Patch attached. Thoughts?
Seems like a good change to make...
OK, committed. Regards, Jeremy Henty
participants (2)
-
corvid@lavabit.com
-
onepoint@starurchin.org