Skip to content

Commit

Permalink
[ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
dreyfus92 authored and tauri-bot committed Mar 4, 2024
1 parent 2167b90 commit 2a096f0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/content/docs/features/window-state.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fn main() {

## Usage

After adding the all windows will remember their state when the app is being closed and will restore to their previous state on the next launch.
After adding the all windows will remember their state when the app is being closed and will restore to their previous state on the next launch.

You can also access the window-state plugin in both JavaScript and Rust.

Expand All @@ -81,7 +81,7 @@ You can also access the window-state plugin in both JavaScript and Rust.
You can use `saveWindowState` to manually save the window state:

```javascript
import { saveWindowState, StateFlags } from "@tauri-apps/plugin-window-state";
import { saveWindowState, StateFlags } from '@tauri-apps/plugin-window-state';

saveWindowState(StateFlags.ALL);
```
Expand All @@ -90,9 +90,9 @@ Similarly you can manually restore a window's state from disk:

```javascript
import {
restoreStateCurrent,
StateFlags,
} from "@tauri-apps/plugin-window-state";
restoreStateCurrent,
StateFlags,
} from '@tauri-apps/plugin-window-state';

restoreStateCurrent(StateFlags.ALL);
```
Expand Down Expand Up @@ -134,9 +134,9 @@ See [Access Control List](/references/v2/acl) for more information.
}
```

| Permission | Description |
| ----------------------------- | ----------------------------------------------------------------- |
| `window-state:allow-restore-window-state` | Enables the restore_window_state command without any pre-configured scope. |
| `window-state:deny-restore-window-state` | Denies the restore_window_state command without any pre-configured scope. |
| `window-state:allow-save-window-state` | Enables the save_window_state command without any pre-configured scope. |
| `window-state:deny-save-window-state` | Denies the save_window_state command without any pre-configured scope. |
| Permission | Description |
| ----------------------------------------- | -------------------------------------------------------------------------- |
| `window-state:allow-restore-window-state` | Enables the restore_window_state command without any pre-configured scope. |
| `window-state:deny-restore-window-state` | Denies the restore_window_state command without any pre-configured scope. |
| `window-state:allow-save-window-state` | Enables the save_window_state command without any pre-configured scope. |
| `window-state:deny-save-window-state` | Denies the save_window_state command without any pre-configured scope. |

0 comments on commit 2a096f0

Please sign in to comment.