mirror of
https://github.com/amitwh/markdown-converter.git
synced 2026-08-02 18:10:18 +05:30
- Normalize pandoc command parsing with path.basename() to support bundled binary paths - Use bundled pandoc binary in convertWithPandoc instead of relying on PATH - Forward includeSubfolders checkbox state from renderer to main process - Add pandoc availability check before batch conversion - Re-enable Start button when batch conversion completes - Clean up obsolete dist build artifact causing test snapshot warning - Bump version to 4.4.4
24 lines
502 B
JavaScript
24 lines
502 B
JavaScript
class SettingsStore {
|
|
/**
|
|
* @param {object} backend - { get(key), set(key, value) } backed by main process store
|
|
*/
|
|
constructor(backend) {
|
|
this.backend = backend;
|
|
}
|
|
|
|
get(key) {
|
|
return this.backend.get(key);
|
|
}
|
|
|
|
set(key, value) {
|
|
this.backend.set(key, value);
|
|
}
|
|
|
|
onChanged(_key, _callback) {
|
|
// Deferred: plugins read settings on init/activate for MVP.
|
|
// Full change notification requires IPC watcher in main process.
|
|
}
|
|
}
|
|
|
|
module.exports = { SettingsStore };
|