Skip to content

Commit

Permalink
update to v0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
blinko-space committed Jan 7, 2025
1 parent 1e65b3e commit 9df21eb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "blinko-snap",
"private": true,
"version": "0.1.0",
"version": "0.1.1",
"type": "module",
"scripts": {
"dev": "vite",
Expand Down
2 changes: 2 additions & 0 deletions src-tauri/capabilities/default.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@
"sql:default",
"sql:allow-load",
"sql:allow-execute",
"process:default",
"process:allow-exit",
"process:allow-restart",
"shell:allow-open",
"global-shortcut:allow-is-registered",
"global-shortcut:allow-register-all",
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "https://schema.tauri.app/config/2",
"productName": "Blinko Snap",
"version": "0.1.0",
"version": "0.1.1",
"identifier": "com.blinko-snap.app",
"build": {
"beforeDevCommand": "pnpm run dev",
Expand Down
4 changes: 3 additions & 1 deletion src/lib/tray.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import i18next from 'i18next';
import { BaseStore } from '@/store/baseStore';
import { RootStore } from '@/store/root';
import { resolveResource } from '@tauri-apps/api/path';
import { path as tauriPath } from '@tauri-apps/api';

// Unique identifier for the system tray
const TRAY_ID = 'blinko-snap-tray';
Expand Down Expand Up @@ -67,7 +68,8 @@ export async function setupTray() {
});

// Load tray icon
const icon = await Image.fromPath('icons/icon.png');
const resolvedPath = await tauriPath.resolveResource('icons/icon.png');
const icon = await Image.fromPath(resolvedPath);

// Create new tray instance
const tray = await TrayIcon.new({
Expand Down
1 change: 0 additions & 1 deletion src/store/blinkoStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ export class BlinkoStore implements Store {
if(res?.data?.language != blinkoSnap.settings.value?.language){
setSetting('language', res?.data?.language)
i18next.changeLanguage(res?.data?.language)
relaunch()
}
})
}
Expand Down

0 comments on commit 9df21eb

Please sign in to comment.