Use store subscribe to ensure IPC call is always made & minor changes to

wording
This commit is contained in:
WardPearce
2025-07-21 14:04:40 +12:00
parent 3c54d6cb94
commit 34d82ba408
5 changed files with 11 additions and 8 deletions
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "Materialious",
"version": "1.9.20",
"version": "1.9.21",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "Materialious",
"version": "1.9.20",
"version": "1.9.21",
"license": "MIT",
"dependencies": {
"@capacitor-community/electron": "^5.0.0",
+2 -2
View File
@@ -1,12 +1,12 @@
{
"name": "materialious",
"version": "1.9.20",
"version": "1.9.21",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "materialious",
"version": "1.9.20",
"version": "1.9.21",
"hasInstallScript": true,
"dependencies": {
"@capacitor-community/electron": "^5.0.1",
@@ -111,6 +111,12 @@
}
});
if (Capacitor.getPlatform() === 'electron') {
interfaceDisableAutoUpdate.subscribe((isDisabled) => {
window.electronAPI.doUpdateCheck(isDisabled);
});
}
let pages: Pages = $state([]);
authStore.subscribe(() => {
pages = getPages();
+1 -1
View File
@@ -136,7 +136,7 @@
"expandChapters": "Expand chapters by default",
"expandComments": "Expand comments by default",
"allowInsecureRequests": "Allow insecure requests",
"disableAutoUpdate": "Disable automatic update installation",
"disableAutoUpdate": "Disable automatic updates",
"dataPreferences": {
"content": "Looking to import/export subscriptions, change password or delete account? Click here and scroll to the bottom of the page.",
"dataPreferences": "Data preferences"
@@ -20,7 +20,6 @@
instanceStore,
interfaceAmoledTheme,
interfaceDefaultPage,
interfaceDisableAutoUpdate,
isAndroidTvStore,
syncPartyPeerStore,
themeColorStore
@@ -211,8 +210,6 @@
if (isLoggedIn) {
loadNotifications().catch(() => authStore.set(null));
}
window.electronAPI.doUpdateCheck($interfaceDisableAutoUpdate)
});
function linkClickOverwrite(event: MouseEvent) {