Skip to content
This repository was archived by the owner on Aug 28, 2020. It is now read-only.

Commit fab897e

Browse files
committed
Use Qt enum for checkbox status
1 parent 49357d9 commit fab897e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pugdebug/models/settings.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
import os
1313

14-
from PyQt5.QtCore import QCoreApplication, QSettings
14+
from PyQt5.QtCore import QCoreApplication, QSettings, Qt
1515

1616

1717
class PugdebugSettings():
@@ -52,9 +52,7 @@ def setup_debugger_settings(self):
5252
self.application_settings.setValue('idekey', 'pugdebug')
5353

5454
if not self.application_settings.contains('break_at_first_line'):
55-
# 2 is the init value because 1 is some weird
56-
# between checked and unchecked state
57-
self.application_settings.setValue('break_at_first_line', 2)
55+
self.application_settings.setValue('break_at_first_line', Qt.Checked)
5856

5957
if not self.application_settings.contains('max_depth'):
6058
self.application_settings.setValue('max_depth', '3')

0 commit comments

Comments
 (0)