Skip to content

Commit

Permalink
Updating screenshots and fixing checkbox display issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
phase1geo committed May 16, 2020
1 parent 401514a commit d96ff2e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 7 deletions.
Binary file modified data/screenshots/screenshot-solarized-dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified data/screenshots/screenshot-solarized-light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 1 addition & 7 deletions src/Node.vala
Original file line number Diff line number Diff line change
Expand Up @@ -890,11 +890,7 @@ public class Node {

n->new_prop( "expanded", expanded.to_string() );
n->new_prop( "hidenote", hide_note.to_string() );

/* Save the task done status, if valid */
if( _task != NodeTaskMode.NONE ) {
n->new_prop( "task", _task.to_string() );
}
n->new_prop( "task", _task.to_string() );

/* Only save out the name/note if we are not a clone or if our clone has not been output yet */
if( (_clone_id == -1) || !clone_ids.has_key( _clone_id ) ) {
Expand Down Expand Up @@ -936,8 +932,6 @@ public class Node {
string? t = n->get_prop( "task" );
if( t != null ) {
_task = NodeTaskMode.from_string( t );
} else {
_task = NodeTaskMode.NONE;
}

string? c = n->get_prop( "clone_id" );
Expand Down
12 changes: 12 additions & 0 deletions src/Utils.vala
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,18 @@ using Cairo;

public class Utils {

/* Returns true if the specified version is older than this version */
public static bool is_version_older( string other_version ) {
var my_parts = Outliner.version.split( "." );
var other_parts = other_version.split( "." );
for( int i=0; i<my_parts.length; i++ ) {
if( int.parse( other_parts[i] ) < int.parse( my_parts[i] ) ) {
return( true );
}
}
return( false );
}

/*
Helper function for converting an RGBA color value to a stringified color
that can be used by a markup parser.
Expand Down

0 comments on commit d96ff2e

Please sign in to comment.