Adjust timeout. Verup.
This commit is contained in:
+3
-2
@@ -3,7 +3,7 @@
|
||||
%%% @end
|
||||
|
||||
-module(gd_con).
|
||||
-vsn("0.8.0").
|
||||
-vsn("0.8.1").
|
||||
-author("Craig Everett <craigeverett@qpq.swiss>").
|
||||
-copyright("QPQ AG <info@qpq.swiss>").
|
||||
-license("GPL-3.0-or-later").
|
||||
@@ -356,6 +356,7 @@ init(none) ->
|
||||
GUI_Prefs = maps:get(gd_gui, Prefs, #{}),
|
||||
Window = gd_gui:start_link(GUI_Prefs),
|
||||
Wallets = get_prefs(wallets, Prefs, []),
|
||||
ok = hz:timeout(default_tic()),
|
||||
MS = default_tic(),
|
||||
T = erlang:send_after(MS, self(), tic),
|
||||
State = #s{window = Window, timer = {T, MS}, wallets = Wallets, prefs = Prefs},
|
||||
@@ -376,7 +377,7 @@ read_prefs() ->
|
||||
|
||||
|
||||
default_tic() ->
|
||||
6000.
|
||||
10_000.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user