feat: put the account's Full VPN setting back when the VPN goes off; release 0.1.3
ysj7705/mudfish-decky/pipeline/head This commit looks good
ysj7705/mudfish-decky/pipeline/head This commit looks good
The node the plugin sets is account-wide, so the PC's Mudfish would also start in Full VPN. Remember the account's own value before changing it and restore it on every teardown (off, connect failure, resume, unload, uninstall); retry in the background if the restore fails. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
01c5f3f315
commit
9cf6efb8ad
7 files changed
+57
-7
No files matched your search
@@ -242,6 +242,11 @@ export function Panel() {
|
||||
<Field focusable={false} description={state.message} />
|
||||
</PanelSectionRow>
|
||||
)}
|
||||
{state.restore_pending && (
|
||||
<PanelSectionRow>
|
||||
<Field focusable={false} description="계정 Full VPN 설정 복구 대기 중 (자동으로 다시 시도해요)" />
|
||||
</PanelSectionRow>
|
||||
)}
|
||||
{state.need_login && (
|
||||
<PanelSectionRow>
|
||||
<ButtonItem layout="below" onClick={() => showModal(<LoginModal />)}>
|
||||
|
||||
@@ -20,6 +20,7 @@ export interface VpnState {
|
||||
need_login: boolean;
|
||||
login: { url: string; expires_at: number } | null;
|
||||
mudfish: { version: string | null; latest: string | null } | null;
|
||||
restore_pending: boolean;
|
||||
}
|
||||
|
||||
export const getState = callable<[], VpnState>("get_state");
|
||||
|
||||
Reference in new issue
Block a user