Skip to content

Commit

Permalink
Merge pull request #238 from paolostivanin/rel-2_4_8
Browse files Browse the repository at this point in the history
Release 2.4.8
  • Loading branch information
paolostivanin authored Feb 18, 2022
2 parents f930e38 + 2156982 commit 370b2e1
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.5)
project(OTPClient VERSION "2.4.7" LANGUAGES "C")
project(OTPClient VERSION "2.4.8" LANGUAGES "C")

configure_file("src/common/version.h.in" "version.h")
include_directories(${PROJECT_BINARY_DIR})
Expand Down
9 changes: 9 additions & 0 deletions data/com.github.paolostivanin.OTPClient.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,15 @@ It's also possible to import/export backups from/to andOTP and import backups fr
</content_rating>

<releases>
<release version="2.4.8" date="2022-02-18">
<description>
<p>OTPClient 2.4.8 brings a couple of fixes</p>
<ul>
<li>fix show next OTP option (issue#234)</li>
<li>correctly decode URIs from QR codes</li>
</ul>
</description>
</release>
<release version="2.4.7" date="2021-11-16">
<description>
<p>OTPClient 2.4.7 implements some small code optimization</p>
Expand Down
3 changes: 1 addition & 2 deletions src/app.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <gcrypt.h>
#include <jansson.h>
#include "otpclient.h"
#include "gui-common.h"
#include "gquarks.h"
#include "imports.h"
#include "common/exports.h"
Expand Down Expand Up @@ -226,7 +225,7 @@ activate (GtkApplication *app,

g_signal_connect (app_data->main_window, "destroy", G_CALLBACK(destroy_cb), app_data);

app_data->source_id = g_timeout_add_full (G_PRIORITY_DEFAULT, 500, traverse_liststore, app_data, NULL);
app_data->source_id = g_timeout_add_full (G_PRIORITY_DEFAULT, 1000, traverse_liststore, app_data, NULL);

setup_dbus_listener (app_data);

Expand Down
5 changes: 2 additions & 3 deletions src/liststore-misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
#include "treeview.h"
#include "liststore-misc.h"
#include "gquarks.h"
#include "gui-common.h"
#include "common/common.h"


Expand Down Expand Up @@ -106,8 +105,8 @@ foreach_func_update_otps (GtkTreeModel *model,

if (otp != NULL && g_utf8_strlen (otp, -1) > 4 && g_ascii_strcasecmp (otp_type, "TOTP") == 0) {
gboolean short_countdown = (period <= 60 || only_a_minute_left) ? TRUE : FALSE;
gint remaining_seconds = (!short_countdown ? 119 : 59) - g_date_time_get_second (g_date_time_new_now_local());
gint token_validity = remaining_seconds % period;
guint remaining_seconds = (!short_countdown ? 119 : 59) - g_date_time_get_second (g_date_time_new_now_local());
guint token_validity = remaining_seconds % period;
if (remaining_seconds % period == 60) {
short_countdown = TRUE;
}
Expand Down
1 change: 0 additions & 1 deletion src/treeview.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#include <jansson.h>
#include "otpclient.h"
#include "liststore-misc.h"
#include "gui-common.h"
#include "message-dialogs.h"


Expand Down

0 comments on commit 370b2e1

Please sign in to comment.