avestura / EyesGuard

👀 Windows Application for protecting your eyes

Home Page:https://github.avestura.dev/EyesGuard

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Wrong message error displayed

gianpaolof opened this issue · comments

Description
A wrong message is displayed

Steps to Reproduce
Steps to reproduce the behavior:

  1. Go to pause settings
  2. Select custom pause
  3. Set 99 as the field for the minute
  4. click on Pause

Expected behavior
Message displayed should be: Minutes field must not be more than 15

Screenshots
Capture

Additional context
The string format fails when tries to format something like this:

MinutesLimit: Minutes field must not be more than {Minutes}

Should be:
MinutesLimit: Minutes field must not be more than {0}