Skip to content

Commit 19583f1

Browse files
authored
Allow deleting last note (#99)
* touchups * allow deleting last note
1 parent 8e2c466 commit 19583f1

4 files changed

Lines changed: 7 additions & 6 deletions

File tree

src/Services/NoteManager.vala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public class Jorts.NoteManager : Object {
128128
application.remove_window ((Gtk.Window)note);
129129
note.close ();
130130
note = null;
131-
save_all ();
131+
immediately_save ();
132132
}
133133

134134
/*************************************************/
@@ -152,6 +152,7 @@ public class Jorts.NoteManager : Object {
152152

153153
private void immediately_save () {
154154
var array = new Json.Array ();
155+
print (open_notes.size.to_string ());
155156

156157
foreach (Jorts.StickyNoteWindow note in open_notes) {
157158
var data = note.packaged ();

src/Widgets/TextView.vala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -150,10 +150,9 @@ public class Jorts.TextView : Granite.HyperTextView {
150150
/**
151151
* Handler whenever a key is pressed, to see if user needs something and get ahead
152152
* Some local stuff is deduplicated in the Ifs, because i do not like the idea of getting computation done not needed 98% of the time
153-
*/
153+
*/
154154
private bool on_key_pressed (uint keyval, uint keycode, Gdk.ModifierType state) {
155-
print ("char typed");
156-
155+
157156
// If backspace on a prefix: Delete the prefix.
158157
if (keyval == Gdk.Key.BackSpace) {
159158
print ("backspace");

windows/beware.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,9 @@ Note about this one: Notes are not deleted on uninstall. Do not worry you wont l
1515
- There is no setting to enable/disable Jorts starting with Windows.
1616
The Installer sets it once, then it is between you and God.
1717

18-
- There may be some very edge case bugs.
18+
- There may be some specific bugs.
1919
As i write this, the looking glass in the search field of the emoji chooser does not show up. I dont fucking know why.
20+
The app is starting slowly, because Windows has to load a lot of libraries Linux kinda has loaded already by default.
2021

2122
====
2223
If you report bugs on Github, please mention that you are using the app on Windows, and ideally your level of technical knowledge so we can respond in a way that does not make you dissociate

windows/deploy.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ BrandingText "Jorts ${version}, ${publisher} 2025"
158158
159159
!define MUI_FINISHPAGE_LINK "Source code and wiki"
160160
!define MUI_FINISHPAGE_LINK_LOCATION "https://github.com/ellie-commons/jorts"
161-
!define MUI_FINISHPAGE_RUN "\$SMPROGRAMS\\${app_name}\\${app_name}.lnk"
161+
!define MUI_FINISHPAGE_RUN "\$INSTDIR\bin\io.github.ellie_commons.jorts.exe"
162162
163163
!insertmacro MUI_PAGE_WELCOME
164164
!insertmacro MUI_PAGE_DIRECTORY

0 commit comments

Comments
 (0)