Skip to content

Commit

Permalink
feat: added window position persistance
Browse files Browse the repository at this point in the history
  • Loading branch information
Tormak9970 committed Jun 1, 2023
1 parent b670039 commit cb45192
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 30 deletions.
86 changes: 58 additions & 28 deletions src-tauri/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src-tauri/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ serde_json = "1.0"
serde = { version = "1.0", features = ["derive"] }
tauri = { version = "1.1", features = ["dialog-all", "fs-all", "http-request", "os-all", "path-all", "process-exit", "process-relaunch", "protocol-all", "reqwest-client", "shell-open", "updater", "window-all"] }
tauri-plugin-single-instance = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "dev" }
tauri-plugin-window-state = { git = "https://github.com/tauri-apps/plugins-workspace", branch = "v1" }
chrono = "0.4.23"
home = "0.5.4"
vdf-serde = "0.3.0"
Expand Down
1 change: 1 addition & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ fn main() {

app.emit_all("single-instance", Payload { args: argv, cwd }).unwrap();
}))
.plugin(tauri_plugin_window_state::Builder::default().build())
.setup(| app | {
let app_handle = app.handle();
logger::clean_out_log(app_handle.clone());
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
<script lang="ts">
import DropDown from "../../interactables/DropDown.svelte";
export let onClose: () => void;
let presets = [
];
let selectedPreset = "clean";
</script>

<!-- svelte-ignore a11y-click-events-have-key-events -->
Expand All @@ -17,7 +24,7 @@
<div class="header">Clean Grids</div>
<div class="border" />
<div class="content">

<DropDown label={"Preset"} options={presets} bind:value={selectedPreset} width="100px" onChange={(newMethod) => {}} />
</div>
</div>
</div>
Expand Down
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion src/windows/main/Main.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import BatchApplyProgressModal from "../../components/toast-modals/batch-apply/BatchApplyProgressModal.svelte";
import ManualGamesModal from "../../components/toast-modals/manual-games/ManualGamesModal.svelte";
import SettingsModal from "../../components/toast-modals/settings/SettingsModal.svelte";
import CleanGridsModal from "../../components/toast-modals/CleanGridsModal.svelte";
import CleanGridsModal from "../../components/toast-modals/clean-grids/CleanGridsModal.svelte";
let mainFocusUnsub: any;
let activeUserIdUnsub: Unsubscriber;
Expand Down

0 comments on commit cb45192

Please sign in to comment.