Skip to content

Wrong string in Quit confirmation dialog #591

Description

@haiphucnguyen

Bug

The "Quit Askimo?" confirmation dialog shows the wrong message — it reuses the
session deletion string (session.delete.confirm: "Are you sure you want to delete
this session?"
) instead of a quit-specific message.

File: desktop/src/main/kotlin/io/askimo/desktop/Main.kt

if (showQuitDialog) {
                        alertDialog(
                            onDismissRequest = { showQuitDialog = false },
                            title = { Text(stringResource("menu.quit") + "?") },
                            text = { Text(stringResource("session.delete.confirm")) },
                            confirmButton = {

Steps to reproduce

  1. Press the quit shortcut (or trigger the Quit dialog from the menu).
  2. Observe the dialog body text — it mentions deleting a session, not quitting the app.

Expected behaviour

The dialog should display a message like "Are you sure you want to quit Askimo?"

Fix

  1. Add a new key to desktop-shared/src/main/resources/i18n/messages.properties
    and all locale files under the same directory

  2. In Main.kt line 1271, change:

    text = { Text(stringResource("session.delete.confirm")) },

to

 text = { Text(stringResource("app.quit.confirm")) },

Metadata

Metadata

Labels

bugSomething isn't workinggood first issueGood for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions