Compare commits
No commits in common. "32bf2e1187b4918b48807885fdd180ab7226410d" and "807a21e9af556ac4a93f9e86bb911aa5b6c5b675" have entirely different histories.
32bf2e1187
...
807a21e9af
5 changed files with 5 additions and 13 deletions
|
|
@ -1,8 +1,6 @@
|
||||||
# 0.4.5
|
# 0.4.5
|
||||||
|
|
||||||
* Make it possible to delete revisions
|
* Make it possible to delete revisions
|
||||||
* Make it possible to force-lock the screen even if idle timer hasn't tripped
|
|
||||||
* Add shortcuts for lock and unlock of screen
|
|
||||||
|
|
||||||
# 0.4.4.1
|
# 0.4.4.1
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -374,11 +374,11 @@ class DBManager:
|
||||||
Delete a specific version by version_id.
|
Delete a specific version by version_id.
|
||||||
"""
|
"""
|
||||||
cur = self.conn.cursor()
|
cur = self.conn.cursor()
|
||||||
with self.conn:
|
row = cur.execute(
|
||||||
cur.execute(
|
"DELETE FROM versions WHERE id=?;",
|
||||||
"DELETE FROM versions WHERE id=?;",
|
(version_id,),
|
||||||
(version_id,),
|
)
|
||||||
)
|
return True
|
||||||
|
|
||||||
# ------------------------- Export logic here ------------------------#
|
# ------------------------- Export logic here ------------------------#
|
||||||
def get_all_entries(self) -> List[Entry]:
|
def get_all_entries(self) -> List[Entry]:
|
||||||
|
|
|
||||||
|
|
@ -88,7 +88,6 @@
|
||||||
"key_prompt_enter_key": "Enter key",
|
"key_prompt_enter_key": "Enter key",
|
||||||
"lock_overlay_locked_due_to_inactivity": "Locked due to inactivity",
|
"lock_overlay_locked_due_to_inactivity": "Locked due to inactivity",
|
||||||
"lock_overlay_unlock": "Unlock",
|
"lock_overlay_unlock": "Unlock",
|
||||||
"main_window_lock_screen_accessibility": "&Lock screen",
|
|
||||||
"main_window_ready": "Ready",
|
"main_window_ready": "Ready",
|
||||||
"main_window_save_a_version": "Save a version",
|
"main_window_save_a_version": "Save a version",
|
||||||
"main_window_settings_accessible_flag": "Settin&gs",
|
"main_window_settings_accessible_flag": "Settin&gs",
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,6 @@ class LockOverlay(QWidget):
|
||||||
|
|
||||||
self._btn = QPushButton(strings._("lock_overlay_unlock"), self)
|
self._btn = QPushButton(strings._("lock_overlay_unlock"), self)
|
||||||
self._btn.setObjectName("unlockButton")
|
self._btn.setObjectName("unlockButton")
|
||||||
self._btn.setShortcut("Ctrl+Shift+U")
|
|
||||||
self._btn.setFixedWidth(200)
|
self._btn.setFixedWidth(200)
|
||||||
self._btn.setCursor(Qt.PointingHandCursor)
|
self._btn.setCursor(Qt.PointingHandCursor)
|
||||||
self._btn.setAutoDefault(True)
|
self._btn.setAutoDefault(True)
|
||||||
|
|
|
||||||
|
|
@ -226,10 +226,6 @@ class MainWindow(QMainWindow):
|
||||||
act_stats.setShortcut("Ctrl+Shift+S")
|
act_stats.setShortcut("Ctrl+Shift+S")
|
||||||
act_stats.triggered.connect(self._open_statistics)
|
act_stats.triggered.connect(self._open_statistics)
|
||||||
file_menu.addAction(act_stats)
|
file_menu.addAction(act_stats)
|
||||||
act_lock = QAction(strings._("main_window_lock_screen_accessibility"), self)
|
|
||||||
act_lock.setShortcut("Ctrl+Shift+L")
|
|
||||||
act_lock.triggered.connect(self._enter_lock)
|
|
||||||
file_menu.addAction(act_lock)
|
|
||||||
file_menu.addSeparator()
|
file_menu.addSeparator()
|
||||||
act_quit = QAction("&" + strings._("quit"), self)
|
act_quit = QAction("&" + strings._("quit"), self)
|
||||||
act_quit.setShortcut("Ctrl+Q")
|
act_quit.setShortcut("Ctrl+Q")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue