insomnium icon indicating copy to clipboard operation
insomnium copied to clipboard

When switching type, the type will change anyway regardless of the prompt result and delete the datas

Open Burrish opened this issue 1 year ago • 2 comments

Expected Behavior

The type should change only after selecting "Ok" or stay the same when clicking on Cancel

image

Actual Behavior

After Entering settings, when switching to any kind of type ( body type or authentication ) a prompt to avoid losing your settings appears as such image

image

but right after clicking, the authentication / body type will instantly change, making the prompt useless and losing your settings and data anyway

Reproduction Steps

Example for the body: After creating a request

  1. Click on multipart
  2. add a setting with any text
  3. switch to JSON
  4. the prompt appears and the data is lost

Is there an existing issue for this?

Additional Information

Version: Insomnium 0.2.3-a Build date: 29/10/2023 OS: Windows_NT x64 10.0.19045 Electron: 25.8.1 Node: 18.15.0 Node ABI: 116 V8: 11.4.183.29-electron.0 Architecture: x64

Insomnium Version

0.2.3-a

What operating system are you using?

Windows

Operating System Version

Windows 10

Installation method

Downloaded windows package from the github release tab of insomnium

Last Known Working Insomnium version

No response

Burrish avatar Dec 21 '23 15:12 Burrish

Hey, can you assign this issue to me?

G0HAN3 avatar Dec 24 '23 17:12 G0HAN3

@Burrish aww this is a good catch.. really bad bug

@G0HAN3 my bad I had been radio-silence recently (catching some work & some stuff happened and now I'm back on github).. It will be real cool if you can sort it out!

I will assign this to you now

archywillhe avatar Jan 26 '24 04:01 archywillhe