Use store subscribe to ensure IPC call is always made & minor changes to
wording
This commit is contained in:
Generated
+2
-2
@@ -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",
|
||||
|
||||
Generated
+2
-2
@@ -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();
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user