Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
hillelcoren committed Nov 14, 2023
2 parents 46fb88b + 7262973 commit 2f70218
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const String kClientVersion = '5.0.140';
const String kMinServerVersion = '5.0.4';

const String kAppName = 'Invoice Ninja';
const String kSiteUrl = 'https://invoiceninja.com/';
const String kSiteUrl = 'https://invoiceninja.com';
const String kAppProductionUrl = 'https://invoicing.co';
const String kAppStagingUrl = 'https://staging.invoicing.co';
const String kAppStagingNetUrl = 'https://invoiceninja.net';
Expand Down
11 changes: 7 additions & 4 deletions lib/ui/app/live_text.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import 'dart:async';

// Flutter imports:
import 'package:flutter/widgets.dart';
import 'package:invoiceninja_flutter/utils/platforms.dart';
import 'package:window_manager/window_manager.dart';

class LiveText extends StatefulWidget {
Expand All @@ -29,11 +30,13 @@ class _LiveTextState extends State<LiveText> {
void initState() {
super.initState();
_timer = Timer.periodic(
widget.duration ?? Duration(milliseconds: 100),
widget.duration ?? Duration(milliseconds: 500),
(Timer timer) async {
final isFocused = await windowManager.isFocused();
if (!isFocused) {
return;
if (isDesktopOS()) {
final isFocused = await windowManager.isFocused();
if (!isFocused) {
return;
}
}

if (mounted) {
Expand Down

0 comments on commit 2f70218

Please sign in to comment.