#Missing edge cases in migrate script - v1 to v2

3 messages · Page 1 of 1 (latest)

broken tiger
#

Hi, so i ran the update cmd, and it updated almost everything that it needed. But it left this:

import { invoke } from '@tauri-apps/api';

unchanged - ik it should have been import { invoke } from "@tauri-apps/api/core";, but just /api worked just fine. According to this https://tauri.app/start/migrate/from-tauri-1/#migrate-to-core-module it should be changed automatically i suppose.
Another thing that broke after upgrade to v2 is custom titlebar, but i use Vue.js and it added the appWindow const into script setup, not into script tag.

But overall thanks to the migration script, made the transition from v1 to v2 a lot easier!

#
  • it added core:window:allow-unmaximize and core:window:allow-maximize but I was using code:window:allow-toggle-maximize aka. appWindow.toggleMaximize()
broken tiger