mirror of
https://github.com/garraflavatra/rolens.git
synced 2025-07-08 01:44:06 +00:00
Added meaningful window titles
This commit is contained in:
14
frontend/src/lib/stores/windowtitle.js
Normal file
14
frontend/src/lib/stores/windowtitle.js
Normal file
@ -0,0 +1,14 @@
|
||||
import { WindowSetTitle } from "$wails/runtime/runtime";
|
||||
import { writable } from "svelte/store";
|
||||
|
||||
const { set, subscribe } = writable('Rolens');
|
||||
|
||||
subscribe(newTitle => WindowSetTitle(newTitle));
|
||||
|
||||
const windowTitle = {
|
||||
set,
|
||||
setSegments: (...segments) => set(segments.map(s => s.trim()).join(' — ')),
|
||||
subscribe,
|
||||
};
|
||||
|
||||
export default windowTitle;
|
Reference in New Issue
Block a user