[gnote] Use autosize_note_window



commit e19af6319cf52312595c9a27ce16abe83d35cad6
Author: Aurimas Černius <aurisc4 gmail com>
Date:   Sat Dec 19 15:37:09 2020 +0200

    Use autosize_note_window

 src/notewindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/notewindow.cpp b/src/notewindow.cpp
index 327c3690..66d22fb8 100644
--- a/src/notewindow.cpp
+++ b/src/notewindow.cpp
@@ -226,7 +226,7 @@ namespace gnote {
 
   void NoteWindow::hint_size(int & width, int & height)
   {
-    
if(m_gnote.preferences().get_schema_settings(Preferences::SCHEMA_GNOTE)->get_boolean(Preferences::AUTOSIZE_NOTE_WINDOW))
 {
+    if(m_gnote.preferences().autosize_note_window()) {
       width = m_width;
       height = m_height;
     }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]