diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-10 20:30:18 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-10 20:30:18 +1000 |
| commit | 8d4c6bc830c84bc1b6790250695083b998dffa0d (patch) | |
| tree | 1d4e85234a960c986251d921a8e8541513183aad /src/modules | |
| parent | sidebar: better headlines (diff) | |
| download | caelestia-shell-8d4c6bc830c84bc1b6790250695083b998dffa0d.tar.gz caelestia-shell-8d4c6bc830c84bc1b6790250695083b998dffa0d.tar.bz2 caelestia-shell-8d4c6bc830c84bc1b6790250695083b998dffa0d.zip | |
headlines: enable button
Also disable news from no api key notif
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/sidebar/modules/headlines.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/sidebar/modules/headlines.tsx b/src/modules/sidebar/modules/headlines.tsx index 462e2ee..40d468b 100644 --- a/src/modules/sidebar/modules/headlines.tsx +++ b/src/modules/sidebar/modules/headlines.tsx @@ -5,6 +5,7 @@ import { capitalize } from "@/utils/strings"; import { bind, execAsync, Variable } from "astal"; import { Gtk } from "astal/gtk3"; import { sidebar } from "config"; +import { setConfig } from "config/funcs"; const fixGoogleNews = (colours: IPalette, title: string, desc: string) => { // Add separator, bold and split at domain (domain is at the end of each headline) @@ -153,7 +154,11 @@ const HeadlinesDisabled = () => ( <box className="header-bar"> <label label="Top news headlines" /> <box hexpand /> - <button sensitive={false} label=" Reload" /> + <button + cursor="pointer" + onClicked={() => setConfig("sidebar.modules.headlines.enabled", true)} + label=" Enable" + /> </box> <NoNews disabled /> </box> |